One more thing, the link shows localhost:8080, and with Apache, I am using 
SSL/TLS on port 443.  So there should be no port visible.  It sounds like 
an old configuration holdover, but in my dspace.cfg and local.cfg, the only 
references to localhost are for solr and postgresql.

Thanks,
Paul

On Wednesday, October 11, 2017 at 9:58:38 AM UTC+2, Paul Warner wrote:
>
> I am on using dspace 6.1, tomcat 8, apache 2.4, Suse 12.2.
>
> On Wednesday, October 11, 2017 at 9:55:10 AM UTC+2, Paul Warner wrote:
>>
>> Hi all,
>>
>> In my dspace, in the top menu bar, by the Language/Sprache dropdown, the 
>> links refer to 'localhost', and not to my site's domain name.  All the 
>> other links link correctly to my site's domain name.  Anyone have an idea 
>> where this language link gets set, and how I could fix it?
>>
>> I recently set Apache in front of Tomcat, using Apaches ProxyPass and 
>> ProxyPassReverse modules.  This change to getting localhost with the 
>> Language dropdown seems to have appeared about the time I made the 
>> changeover to Apache.
>>
>> ProxyPass         /jspui  http://localhost:8080/jspui
>> ProxyPassReverse  /jspui  http://localhost:8080/jspui
>>
>> I set Tomcat to listen only on localhost and to pick up Apache's 
>> x-forwarded-for header:
>>
>> <Host name="localhost"  appBase="webapps"
>>             unpackWARs="true" autoDeploy="true">
>>
>>         <Valve className="org.apache.catalina.valves.AccessLogValve" 
>> directory="logs"
>>                prefix="localhost_access_log" suffix=".txt"
>>                pattern="%h %l %u %t &quot;%r&quot; %s %b" />
>>         <Valve className="org.apache.catalina.valves.RemoteIpValve"
>>                remoteIpHeader="x-forwarded-for"
>>                />
>>         <Valve className="org.apache.catalina.valves.RemoteAddrValve"
>>                allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1"/>
>>       </Host>
>>
>> I am using IPAuthentication and PasswordAuthentication, and the 
>> IPAuthentication picks up the x-forwarded-for correctly, and so does the 
>> log.  I am wondering if the Language setting looks at the incoming IP 
>> address, and thereby determines which language to use.  If the IP address 
>> is coming in localhost or empty, then perhaps that is why I am getting 
>> localhost in this menu link.  But I have not been able to find where this 
>> link gets set.
>>
>> Thanks for any help.
>>
>> Best regards,
>> Paul
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to