Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 95CEC10951 for ; Fri, 5 Apr 2013 01:13:23 +0000 (UTC) Received: (qmail 44678 invoked by uid 500); 5 Apr 2013 01:13:20 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 44613 invoked by uid 500); 5 Apr 2013 01:13:20 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 44604 invoked by uid 99); 5 Apr 2013 01:13:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 01:13:20 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [75.180.132.120] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.120) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Apr 2013 01:13:13 +0000 X-Authority-Analysis: v=2.0 cv=TO3HuiZa c=1 sm=0 a=WfNYnXfd5AlQD2NaLIi6mQ==:17 a=EwAZTTr63BkA:10 a=FKkrIqjQGGEA:10 a=5rfQmagaVb0A:10 a=gKdNUozYXGYA:10 a=wPDyFdB5xvgA:10 a=IkcTkHD0fZMA:10 a=Fx01H1t8AAAA:8 a=bURFYzFx0S4A:10 a=BlHD3JdOAAAA:8 a=iv-aT2DbAAAA:8 a=7zciIm1HMD6m0w_TrjIA:9 a=QEXdDO2ut3YA:10 a=WfNYnXfd5AlQD2NaLIi6mQ==:117 X-Cloudmark-Score: 0 X-Authenticated-User: X-Originating-IP: 75.177.185.93 Received: from [75.177.185.93] ([75.177.185.93:26867] helo=mail.electrichendrix.com) by cdptpa-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id BE/D7-06772-4152E515; Fri, 05 Apr 2013 01:12:52 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.electrichendrix.com (Postfix) with ESMTP id 2145F1182FD for ; Thu, 4 Apr 2013 21:09:03 -0400 (EDT) X-Virus-Scanned: amavisd-new at mail.electrichendrix.com Received: from mail.electrichendrix.com ([127.0.0.1]) by localhost (mail.electrichendrix.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id I4Kyy5RINevk for ; Thu, 4 Apr 2013 21:08:58 -0400 (EDT) Received: from mail.electrichendrix.com (mail.electrichendrix.com [192.168.124.3]) by mail.electrichendrix.com (Postfix) with ESMTP id 3DB6E1182FC for ; Thu, 4 Apr 2013 21:08:58 -0400 (EDT) Date: Thu, 4 Apr 2013 21:08:58 -0400 (EDT) From: Chris Arnold To: Tomcat Users List Message-ID: <650616358.12179.1365124138121.JavaMail.root@electrichendrix.com> In-Reply-To: <2046464178.12164.1365122496548.JavaMail.root@electrichendrix.com> References: <1605326641.11126.1365092882908.JavaMail.root@electrichendrix.com> <515DC957.4060900@christopherschultz.net> <2D160494-DF3C-4440-B08C-FCF7024CF41D@electrichendrix.com> <515DEDFB.5060601@christopherschultz.net> <2046464178.12164.1365122496548.JavaMail.root@electrichendrix.com> Subject: Re: Serve same content to multiple URL's MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Mailer: Zimbra 8.0.0_GA_5434 (ZimbraWebClient - FF10 (Linux)/8.0.0_GA_5434) Thread-Topic: Serve same content to multiple URL's Thread-Index: jHvlYpT2foaKJtEOZZkShEzK9YFOHujGkVAT X-Virus-Checked: Checked by ClamAV on apache.org > I didn't think I needed a second worker but because the working > config only worked for http://share.domain1.com and nothing else, I > wanted to verify it should work or I needed another worker and you > verified I do not need another worker and in fact, the existing > config for http://share.domain1.com should work for > http://share.domain2.com >>>>You definitely don't need a second worker. Great! I know i am going in the right direction >> Why do you need a second VirtualHost, even? > > Apache has to answer for that request (http://share.domain2.com) > and pass it to tomcat >>>>Sure, but you don't care what the target of the request is: everything goes to the same backend, right? Correct. Goes to the same backend/content (static) >> I'm not sure why you are getting 404s: any idea if it's a >> response coming from httpd or Tomcat? > > No error logs in apache or tomcat which is weird? >>>>Well, httpd should have something in its access log. Does Tomcat have >>>>anything in its access log? If not, then httpd is returning the 404 >>>>and you don't have your mod_jk configuration correct. Can you post >>>>more of your httpd.conf? Where do you have JkWorkersFile configured? httpd.conf: # mod_jk Include /opt/alfresco/tomcat/conf/jk.conf jk.conf: JkWorkersFile /opt/alfresco/tomcat/workers.properties JkLogFile /var/log/alfresco/mod_jk.log JkShmFile /var/log/alfresco/shm # Log level to be used by mod_jk JkLogLevel error >> If you browse to http://share.domain2.com/ are you properly >> redirected (as I would expect given the above configuration) to >> http://share.domain2.com/share ? > >>>>Apache httpd should be answering the request and responding with a >>>>redirect. Does the redirect happen (check your URL bar, or use a >>>>protocol sniffer like HttpFox, etc. through your web browser). It does not redirect. Browser stays at http://share.domain2.com Will try to get some logs and post here OK, found where apache is logging this traffic to: a clients blog site. So now, when going to http://share.domain2.com, you get 1 of our clients blog sites? Definitely not redirecting. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org