Hello Paul,

the link is set here:
https://github.com/DSpace/DSpace/blob/dspace-6.1/dspace-jspui/src/main/webapp/layout/navbar-default.jsp#L133

Hope this helps

Claudia Jürgen


Am 11.10.2017 um 09:58 schrieb Paul Warner:
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



--
Claudia Juergen
Eldorado

Technische Universität Dortmund
Universitätsbibliothek
Vogelpothsweg 76
44227 Dortmund

Tel.: +49 231-755 40 43
Fax: +49 231-755 40 32
claudia.juer...@tu-dortmund.de
www.ub.tu-dortmund.de

Wichtiger Hinweis: Die Information in dieser E-Mail ist vertraulich. Sie ist 
ausschließlich für den Adressaten bestimmt. Sollten Sie nicht der für diese 
E-Mail bestimmte Adressat sein, unterrichten Sie bitte den Absender und 
vernichten Sie diese Mail. Vielen Dank.
Unbeschadet der Korrespondenz per E-Mail, sind unsere Erklärungen 
ausschließlich final rechtsverbindlich, wenn sie in herkömmlicher Schriftform 
(mit eigenhändiger Unterschrift) oder durch Übermittlung eines solchen 
Schriftstücks per Telefax erfolgen.

Important note: The information included in this e-mail is confidential. It is 
solely intended for the recipient. If you are not the intended recipient of 
this e-mail please contact the sender and delete this message. Thank you. 
Without prejudice of e-mail correspondence, our statements are only legally 
binding when they are made in the conventional written form (with personal 
signature) or when such documents are sent by fax.

--
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