tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dean A. Hoover" <dhoo...@rochester.rr.com>
Subject apache + tomcat virtual hostnames
Date Mon, 02 Feb 2004 00:03:52 GMT
I am using apache 2 and tomcat 4.1 connected
with mod_jk. I have multiple virtual named
hosts in the httpd.conf file, such as:

<VirtualHost *:80>
   ServerName www.myserver.com
   ServerAlias myserver.com
   ...

set up so that apache serves up the static
content, and tomcat will handle the servlet
stuff. In my server.xml file I set the attribute
"name" to "www.myserver.com" in the Host tagset.
This works fine if I hit http://www.myserver.com
but not for http://myserver.com. Apache handles
both the same, but not tomcat. Is there something
like ServerAlias in tomcat?

Dean


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message