Hi,

We have a setup with multiple tomcat4 servers and a single apache2
acting as a front for them.

<VirtualHost *:81>
        ServerName vacuum1.xentive.com:81
        ServerAlias xentive.com
        ServerAlias www.xentive.com
        DocumentRoot /var/www/apache2-default/
        <Location /oplayer/>
          JkUriSet worker ajp13:misc
        </Location>
        <Location />
          JkUriSet worker ajp13:smsc
        </Location>

        ErrorLog /var/log/apache2/vacuum1-error.log
        CustomLog /var/log/apache2/vacuum1-access.log combined
</VirtualHost>

The above configuration directs http://vacuum1.xentive.com:81/oplayer/
to the 'misc' tomcat, while everything else goes to the 'smsc' tomcat.
This works as long we specify the least specific location tag last.

But when we add another virtual host:

<VirtualHost *:81>
        ServerName admin.mobilegamez.com:81
        DocumentRoot /var/www/apache2-default/
        RewriteEngine on
        RewriteLog /var/log/apache2/rewrite.log
        <Location />
          JkUriSet worker ajp13:misc
        </Location>

        ErrorLog /var/log/apache2/vacuum1-error.log
        CustomLog /var/log/apache2/vacuum1-access.log combined
</VirtualHost>

Now everything goes to 'misc', even http://vacuum1.xentive.com:81/ which
before went to 'smsc'.

This effectively prevents us from deploying multiple applications in the
root context on different virtual hosts to different tomcat4 servers.

Is there a better way to do it (one that works)?

Baldur

-- 
Baldur Norddahl <[EMAIL PROTECTED]>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to