Hi guys.
I've installed Tomcat4 with Apache through mod_webapp, and it works.
However, I have the following problem:
 
If I point my browser to http://www.mydomain.com <http://www.mydomain.com> ,
Apache redirects me to http://123.45.67.89/index.jsp
<http://123.45.67.89/index.jsp> , where 123.45.67.89 is the IP address of
the server running the application, and is set as the ServerName in
httpd.conf.
 
If I change the ServerName in httpd.conf to www.mydomain.com
<http://www.mydomain.com> , then the opposite happens (that is, if I point
the browser to 123.45.67.89 I get redirected to www.mydomain.com/index.jsp
<http://www.mydomain.com/index.jsp> ).
 
Now the strange thing is, that if I type the full path (with the
"/index.jsp" at the end), then no redirection occurs.
 
This is a problem for me because I have multiple domain names pointing to
the IP address, and the user is always redirected to the IP address, which
is unacceptable.
 
Has anyone experienced this problem, or even better, solved it?
 
Thx for your help.
-OGG


Reply via email to