httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JBraw...@silenus.com
Subject VirtualHost and JkMount
Date Mon, 24 Jun 2002 19:51:13 GMT
Hi all,

I had originally set up Apache (1.3) and Tomcat (4.1) to host one site
using ajp12/JkMount connector.  Apache sent most requests to Tomcat using
the JkMount command.  For example, a request to site1.com/MyHomeDir
directory would be sent to tomcat.

Now, I've added another site to Apache so I am using the Virtual Host
container, one for each site.  The problem is that Apache forwards all
requests to MyHomeDir, regardless of which virtualhost is requested.  For
instance,  a request to site2.com/MyHomeDir goes to the same MyHomeDir as
site1.com/MyHomeDir.

So, when using virtual hosts, where to I put the JkMounts that only applies
to 1 virtual host?

Here is my current setup.
******************************************************************************
<VirtualHost 192.168.100.1>
    ServerAdmin jbrawner@silenus.com
    DocumentRoot F:\site1
    ServerName site1.com
    ErrorLog logs/site1_error.log
    CustomLog logs/site1_access.log common
</VirtualHost>

<VirtualHost 192.168.100.1>
    ServerAdmin jbrawner@silenus.com
    DocumentRoot F:\site2
    ServerName site2.com
    ErrorLog logs/site2.log
    CustomLog logs/site2.log common
</VirtualHost>

JkWorkersFile E:/Apache/conf/workers.properties

JkMount /manager/* tomcat1
JkMount /MyHomeDir/* tomcat1
JkMount /Pma/* tomcat1

# ***********************************************************

Thanks,

Jason E. Brawner
Silenus Group
(248) 735-8077



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message