|
Sorry I forgot
to attach the file.
I have two domain names that I want to serve from one webserver. I have set up DNS and now the apache is working fine. The webserver serves up the html from the DocumentRoot for both domains, but Tomcat serves pages from the DocumentRoot of the first domains for both the domains. How do I set up the server.xml for two domains using the same IP? Do I have to use different IP addresses? Attached is a snip for my httpd.conf and server.xml. Please someone tell me if you see what I am doing wrong... Any help is greatly appreciated. Thank You Shannon |
httpd.conf snip:
NameVirtualHost 192.168.201.2
<VirtualHost 192.168.201.2>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/tomcat4/webapps/ROOT
ServerName host1.com
ServerAlias www.host1.com
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
</VirtualHost>
<VirtualHost 192.168.201.2>
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /var/tomcat4/webapps/host2
ServerName host2.com
ServerAlias www.host2.com
JkMount /servlet/* ajp13
JkMount /*.jsp ajp13
</VirtualHost>
server.xml snip:
<Engine name="Apache-Integrate" defaultHost="host1.com" debug="0">
<Host name="host1.com" debug="0" appBase="webapps" unpackWARs="true">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/etc/httpd/modules/mod_jk.so" jkDebug="info"
workersConfig="/var/tomcat4/conf/jk/workers.properties"
jkLog="/var/tomcat4/logs/mod_jk.log" />
<Alias>www.host1.com</Alias>
</Host>
<Host name="host2.com" debug="0" appBase="webapps" unpackWARs="true">
<Listener className="org.apache.ajp.tomcat4.config.ApacheConfig"
modJk="/etc/httpd/modules/mod_jk.so" jkDebug="info"
workersConfig="/var/tomcat4/conf/jk/workers.properties"
jkLog="/var/tomcat4/logs/mod_jk.log" />
<Alias>www.host2.com</Alias>
</Host>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
