On 14/03/2012 21:00, Dave Shevett wrote:
> Hi folks, I'm setting up a tomcat server that will be running a few
> dozen vhosts all being served from the same war file.  I've set up AJP
> connectors for wildcard hosts on apache, and I'm able to see the tomcat
> server from the outside world.

Exactly which OS, Java & Tomcat versions are you using?


> However, secondary vhosts I create don't seem to be working.
> 
> An example.  The apache front end has:
> 
> <VirtualHost *:80>
>     ServerName m.REDACTED.com
>     ServerAlias *.REDACTED.com
> 
>     ProxyPreserveHost On
>     ProxyPass / ajp://10.211.42.48:8009/
>     ProxyPassReverse / ajp://10.211.42.48:8009/
> 
>     <Proxy ajp://10.211.42.48:8009/*>
>           Order allow,deny
>           Allow from all
>     </Proxy>

The above doesn't serve any purpose does it, unless you have 'deny from
all' rules applied elsewhere?


> </VirtualHost>


> The target IP is 10.211.42.48 is running Tomcat6, and has things like this:
> 
> /etc/tomcat6/Catalina/vhost.REDACTED.com/ROOT.xml
> 
> containing:
> 
> <Context path="/" docBase="/var/wars/application.war" />

path="" would be correct if it was valid here, which it is not - it is
redundant because the path is derived from the Context definition file
name 'ROOT.xml'.

> I'm assuming when I hit vhost.REDACTED.com, I should see a deployed
> version of the application.war, right?  Or am I doing something
> blatantly stupidly wrong here?

What _do_ you see?

Are there any relevant messages in the Tomcat logs?

How have you defined the Hosts in server.xml?

What is the appBase setting for each Host you define in server.xml?


p

> Thanks!
> 
>     -d
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-- 

[key:62590808]

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to