I see where you turned it on and define the log file but where is the rule? or 
condition?


Thank you,

Patrick Sullivan
Centura Health

-----Original Message-----
From: Baldur Norddahl [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 3:16 AM
To: [EMAIL PROTECTED]
Subject: jk2/apache2 ignores apache virtual hosts


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]>





This communication is for the use of the intended recipient only.  It may contain 
information that is privileged and confidential.  If you are not the intended 
recipient of this communication, any disclosure, copying, further distribution or use 
thereof is prohibited.  If you have received this communication in error, please 
advise me by return e-mail or by telephone and delete/destroy it.


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

Reply via email to