Vhosting with Apache 2 & jk 2003-12-16 - By The Bean
Back Hi all,
I have several domains hosted by Apache 2.0.48, and I'd like to start adding JSPs to each domain. I have Tomcat 4.0.16 running on a different host, and am using JK to connect them. Virtual hosting is working on Tomcat, if I go straight to the Tomcat host on port 8080. JK does appear to be forwarding requests over to Tomcat.
The problem is, the requests always go to the default domain on Tomcat (webapps/ROOT). It's almost as though the file portion of the URL is getting forwarded to Tomcat, but not the domain.
My worker properties is pretty much the sample -- I've included it below. I've also included the lines from my VirtualHost block for the offending domain.
Any thoughts?
- Bean
... workers.properties
# Define 1 real worker using ajp13 worker.list=worker1
# Set properties for worker1 (ajp13) worker.worker1.type=ajp13 worker.worker1.host=66.139.244.188 worker.worker1.port=8009 worker.worker1.lbfactor=50 worker.worker1.cachesize=10 worker.worker1.cache_timeout=600 worker.worker1.socket_keepalive=1 worker.worker1.socket_timeout=300
... from httpd.conf
<VirtualHost www.mydomain.local:80> ServerName www.mydomain.local ServerAdmin www@(protected) DocumentRoot "/usr/local/www/data/www.mydomain.local" ErrorLog /var/log/apache2/www.mydomain.local/error.log ErrorLog /var/log/apache2/www.mydomain.local/access.log common DirectoryIndex index.html JkMount /main/*.html worker1 JkMount /main/*.jsp worker1 </VirtualHost>
(The URL I want to go to is htyp://www.mydomain.local/main, since 'main' is the name of my webapp under Tomcat)
__ ____ ____ ____ ____ ____ ______ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected) For additional commands, e-mail: tomcat-user-help@(protected)
|
|