Tomcat Version: 4.0.x (not sure which exact release - I think its 4.0.2) I've got a pretty serious problem right now that I'm having trouble fixing. I've got a production website running and I need to change the header of the pages on the website depending on the hostname in the URL.
I've got UseCanonicalNames set to off for the default, and for each virtual host. Lets say I've got this... <VirtualHost 192.168.1.20> ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/www/docs/development/blah.com UseCanonicalName Off ServerName doh.blah.com ServerAlias homer homer.blah.com RewriteEngine on RewriteRule ^.*\.xsl$ / [R] WebAppDeploy pctidev conn / ErrorLog logs/homer-error_log CustomLog logs/homer-access_log common <Directory "/home/www/docs/development/blah.com"> Options All AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost> I'm using Cocoon1 along with Tomcat (but I dont think it has anything to do with Cocoon). If I try to go to the following URL with these settings: http://homer.blah.com/index.xml It works fine that way - BUT - if I try going to the following (keep in mind I have index.xml set as one of my DirectoryIndex settings): http://homer.blah.com/ It changes the URL to be http://doh.blah.com/index.xml If I comment out the WebAppDeploy in the VirtualHost and just stick in an index.html file in the same directory and try the same thing it works fine. It's almost as though Tomcat is the one doing the redirection (and it doesnt make any difference if its a .xml file or .jsp - same thing happens). I have both domains specified in my server.xml like the following: <Host name="homer.blah.com" debug="0" appBase="webapps" unpackWARs="true"> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="homer_access_log." suffix=".txt" pattern="common"/> <Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="homer_log." suffix=".txt" timestamp="true"/> <Context path="" docBase="/home/www/docs/development/blah.com" debug="0" reload="true"/> </Host> The exact same thing is copied after this and the name="" is changed to name="doh.blah.com". Can ANYONE please give me a little help???? Thanks, - Brent -- To unsubscribe: <mailto:[EMAIL PROTECTED]> For additional commands: <mailto:[EMAIL PROTECTED]> Troubles with the list: <mailto:[EMAIL PROTECTED]>