It was in fact the web server.  I'm running Apache and I had to change the proxypass 
and proxypassreverse lines
from:
ProxyPass /tablemaintenance http://localhost:8080/tablemaintenance
ProxyPassReverse /tablemaintenance http://localhost:8080/tablemaintenance
to:
ProxyPass /tablemaintenance http://isunit81:8080/tablemaintenance
ProxyPassReverse /tablemaintenance http://isunit81:8080/tablemaintenance

It works fine now but how would I set it up so that the URL never displays the 
hostname and port number it forwards to.  After I login it shows 
http://isunit81:8080/tablemaintenance/login.do on the URL line.  I want it to either 
show http://isunit/tablemaintenance (login page) or 
http://isunit81/tablemaintenance/login.do  That way if the web server is on a 
different machine than the app server, they attach to the web server and have no idea 
where Apache is forwarding their request.

Brad

-----Original Message-----
From: Barett McGavock [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 16, 2003 1:31 PM
To: 'Struts Users Mailing List'
Cc: Bradford M. Ayers
Subject: RE: url changing to localhost


This is a web server configuration problem. Are you using Tomcat?

Try examining the web server configuration file for the local host name. A
simple search for localhost should find some candidiates for change to
"isunit81".

Send more information about your web server and perhaps I or someone else
can be more specific.

B

-----Original Message-----
From: Bradford M. Ayers [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 16, 2003 9:36 AM
To: [EMAIL PROTECTED]
Subject: url changing to localhost


I'm new to Struts, so excuse me if this seems like an obvious one.

What is the trick to prevent the URL from changing?  If I hit my machine
(isunit81 which has a web server and the web app) from a remote machine by
using this URL, http://isunit81/tablemaintenance and I login (by submitting
a user/password form), the next page it takes me to has the URL with
localhost:8080 instead of isunit81
(http://localhost:8080/tablemaintenance/login.do;jsessionid=874ED1411066677F
92DD8686A61FD0AB)  On a remote machine, I get a 404 error because of
localhost, it's trying to find the page on itself.  What am I doing wrong?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to