> Hi, > I need some advice...I need to configure my-tomcat-apache.conf to > allow my Virtual Hosting to map to a webapp so that when the user > enters www.domain.com, it directs their request as if they had > specified the webapp (like www.domain.com/webapp). > I have tried many different things, but here's what I have so far. > This works fine for the virtual hosting, but again I need > www.domain.com to map to www.domain.com/webapp without the user seeing > the URL change. Any advice is much appreciated! > > 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.* > ServerAlias domain.* > ## This next line specifies for Tomcat to handle /fas requests, but > ## the problem is I don't want the user to have to enter /fas in the > URL. > ApJServMount /fas ajpv12://www.domain.com:8010/fas > DocumentRoot /usr/local/apache/prod/htdocs/mydomain > # ErrorLog /usr/local/apache/prod/logs/mydomain/error_log > # CustomLog /usr/local/apache/prod/logs/mydomain/access_log common > ## These are some things I have tried with no success: > # <LocationMatch *.html> > # SetHandler jserv-servlet > # </LocationMatch> > # ApJServMount /* ajpv12://www.mydomain.com/fas > ## Redirect www.mydomain.com http://www.mydomain.com/fas > # RewriteEngine on > # RewriteRule ^www.mydomain.com(.*) http://www.mydomain.com/fas$1 > [R] > </VirtualHost> > > AddType text/jsp .jsp > AddHandler jserv-servlet .jsp > > ...and the Alias entries for my webapps... > > Thanks for your help, ...Christopher in Denver
