Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 22411 invoked from network); 13 Apr 2004 08:24:08 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 13 Apr 2004 08:24:08 -0000 Received: (qmail 15568 invoked by uid 500); 13 Apr 2004 08:23:04 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 15516 invoked by uid 500); 13 Apr 2004 08:23:02 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 15463 invoked from network); 13 Apr 2004 08:23:02 -0000 Received: from unknown (HELO gummybear.solmstraining.co.za) (196.22.194.227) by daedalus.apache.org with SMTP; 13 Apr 2004 08:23:02 -0000 Received: from [192.168.1.130] (rrba-160-198.telkomadsl.co.za [165.165.160.198]) (authenticated bits=0) by gummybear.solmstraining.co.za (8.12.10/8.12.10) with ESMTP id i3D8Sjag008580; Tue, 13 Apr 2004 10:28:46 +0200 Mime-Version: 1.0 (Apple Message framework v613) To: users@httpd.apache.org, tomcat-user@jakarta.apache.org Message-Id: Content-Type: multipart/alternative; boundary=Apple-Mail-1-458177997 From: "Alexander F. Hartner" Date: Tue, 13 Apr 2004 10:23:13 +0200 X-Mailer: Apple Mail (2.613) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: [users@httpd] Virtual Host, Locations and Mod_JK2 X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --Apple-Mail-1-458177997 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed I host several websites on my apache2 (2.0.49) using virtual hosts. One of the hosts I would like to forward fully to a web application deployed on tomat via Mod_JK. What I have done is the following: Installed the webapplication in tomcat's root "/" context Configured a worker in workers2.properties Configured a virutal host on apache2 ServerAdmin root@solms.co.za DocumentRoot /home/www/solms.co.za/ ServerName www.solms.co.za ServerAlias solms.co.za *.solms.co.za solmstraining.co.za *.solmstraining.co.za ErrorLog logs/solms.co.za-error_log CustomLog logs/solms.co.za-access_log combined JkUriSet worker ajp13:localhost:28009 Everything is working, except the Location directive spans all my other virtual hosts as well. A request to any of the virtual hosts is redirected to /index.jsp, which I guess comes from my web application's deployment descriptor. Direct requests to otherhost.com/index.html are still processed by apache correctly, but general request to otherhost.com are redirected to otherhost.com/index.jsp. Ugly solution: What I have done in the mean time is to either -create index.jsp files which are typically copies of the index.html -modify the webapplication to redirect to index.html I should not have to do this as the location should only work for the virtual host in which it is configured. Any suggestions welcome Alex --Apple-Mail-1-458177997 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII I host several websites on my apache2 (2.0.49) using virtual hosts. One of the hosts I would like to forward fully to a web application deployed on tomat via Mod_JK. What I have done is the following: Installed the webapplication in tomcat's root "/" context Configured a worker in workers2.properties Configured a virutal host on apache2 < ServerAdmin root@solms.co.za DocumentRoot /home/www/solms.co.za/ ServerName www.solms.co.za ServerAlias solms.co.za *.solms.co.za solmstraining.co.za *.solmstraining.co.za ErrorLog logs/solms.co.za-error_log CustomLog logs/solms.co.za-access_log combined < JkUriSet worker ajp13:localhost:28009 < < Everything is working, except the Location directive spans all my other virtual hosts as well. A request to any of the virtual hosts is redirected to /index.jsp, which I guess comes from my web application's deployment descriptor. Direct requests to otherhost.com/index.html are still processed by apache correctly, but general request to otherhost.com are redirected to otherhost.com/index.jsp. Ugly solution: What I have done in the mean time is to either -create index.jsp files which are typically copies of the index.html -modify the webapplication to redirect to index.html I should not have to do this as the location should only work for the virtual host in which it is configured. Any suggestions welcome Alex --Apple-Mail-1-458177997--