tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Shade" <csh...@indigio.com>
Subject problem with virtual hosting
Date Mon, 02 Apr 2001 20:31:04 GMT
I tried to map www.domain.com to www.domain.com/webapp by using
ServerName and ServerAlias in the config file, but it's not working.
Below is what I tried in my-tomcat-apache.conf.  What am I doing wrong?
Is there a better way to map a domain to a webapp?  Thanks!
...Christopher

####################### my-tomcat-apache.conf #############

LoadModule jserv_module libexec/mod_jserv.so
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
 
ApJServDefaultPort 8010

# Name the Virtual Host IP
NameVirtualHost ...server IP is here...
 
# Define the Virtual Hosts
<VirtualHost ...server IP is here...>
    ServerName www.domain.com/fas
    ServerAlias www.domain.com
    ApJServMount /fas ajpv12://www.domain.com:8010/fas
    DocumentRoot /usr/local/apache/prod/htdocs/fas
</VirtualHost>

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

...and the Alias entries for my webapps...



Mime
View raw message