You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "David M. Holmes" <da...@yahoo.com> on 2000/07/25 04:13:20 UTC
Apache vs Tomcat serving / context
OK I'm stumped. Following is my tomcat.conf, sorry for being so verbose. I'm trying to figure out
why Apache is not serving my request for the root / on my web sites (i.e.
http://dev.ilca.hlp.reliantenergy.com/). When I request the website root / I get the Tomcat
directory listing. If I request any directories below the root /a/, /b/, I get the expected Apache
directory listing. Everything else works great. In each sites server.xml I mount "" to the website
root for a / context for Tomcat but I believe the static files are still being served by Apache.
###############################################################################
# Apache JServ Configuration File #
###############################################################################
# Note: this file should be appended or included into your httpd.conf
# Tell Apache on win32 to load the Apache JServ communication module
LoadModule jserv_module modules/ApacheModuleJServ.dll
<IfModule mod_jserv.c>
# Do not edit!
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice
### Change if you run tomcat on a different host
#ApJServDefaultHost localhost
AddType text/jsp .jsp
AddHandler jserv-servlet .jsp
############################# Apache virtual host config ##########################
NameVirtualHost 10.12.9.2
Alias /lib D:/Inetpub/webs/shared/lib
Options Indexes
DirectoryIndex default.htm default.jsp
ServerAdmin david_m_holmes@reliantenergy.com
<VirtualHost 10.12.9.2>
ServerName dev.ilca.hlp.reliantenergy.com
DocumentRoot D:/Inetpub/webs/dev/dev.ilca.hlp.reliantenergy.com
ApJServDefaultPort 8007
ApJServMount /servlet /root
ErrorLog logs/error_dev.ilca.hlp.reliantenergy.com.log
CustomLog logs/access_dev.ilca.hlp.reliantenergy.com.log common
</VirtualHost>
<VirtualHost 10.12.9.2>
ServerName ilca.hlp.reliantenergy.com
DocumentRoot D:/Inetpub/webs/prod/ilca.hlp.reliantenergy.com
ApJServDefaultPort 8008
ApJServMount /servlet /root
ErrorLog logs/error_ilca.hlp.reliantenergy.com.log
CustomLog logs/access_ilca.hlp.reliantenergy.com.log common
</VirtualHost>
<VirtualHost 10.12.9.2>
ServerName dev.ebusiness.reliantenergy.com
DocumentRoot D:/Inetpub/webs/dev/dev.ebusiness.reliantenergy.com
ApJServDefaultPort 8009
ApJServMount /servlet /root
ErrorLog logs/error_dev.ebusiness.reliantenergy.com.log
CustomLog logs/access_dev.ebusiness.reliantenergy.com.log common
</VirtualHost>
<VirtualHost 10.12.9.2>
ServerName ebusiness.reliantenergy.com
DocumentRoot D:/Inetpub/webs/prod/ebusiness.reliantenergy.com
ApJServDefaultPort 8010
ApJServMount /servlet /root
ErrorLog logs/error_ebusiness.reliantenergy.com.log
CustomLog logs/access_ebusiness.reliantenergy.com.log common
</VirtualHost>
<VirtualHost 10.12.9.2>
ServerName dev.enform.reliantenergy.com
DocumentRoot D:/Inetpub/webs/dev/dev.enform.reliantenergy.com
ApJServDefaultPort 8011
ApJServMount /hlp/ma root
ApJServMount /servlet /root
ErrorLog logs/error_dev.enform.reliantenergy.com.log
CustomLog logs/access_dev.enform.reliantenergy.com.log common
</VirtualHost>
</IfModule>
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail � Free email you can access from anywhere!
http://mail.yahoo.com/