Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 1113 invoked from network); 30 Oct 2009 15:44:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 30 Oct 2009 15:44:04 -0000 Received: (qmail 78646 invoked by uid 500); 30 Oct 2009 15:44:00 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 78585 invoked by uid 500); 30 Oct 2009 15:44:00 -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 78574 invoked by uid 99); 30 Oct 2009 15:44:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 15:44:00 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2009 15:43:51 +0000 Received: from localhost (localhost [127.0.0.1]) by tor.combios.es (Postfix) with ESMTP id E0E532260A5 for ; Fri, 30 Oct 2009 16:43:29 +0100 (CET) Received: from tor.combios.es ([127.0.0.1]) by localhost (tor.combios.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4+L3dcpZmUDc for ; Fri, 30 Oct 2009 16:43:29 +0100 (CET) Received: from [192.168.245.129] (p549EA422.dip0.t-ipconnect.de [84.158.164.34]) by tor.combios.es (Postfix) with ESMTPA id 8E1A9226098 for ; Fri, 30 Oct 2009 16:43:29 +0100 (CET) Message-ID: <4AEB0995.4090307@ice-sa.com> Date: Fri, 30 Oct 2009 16:43:17 +0100 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: tomact, apache & adobe coldfusion 9 References: <5388baf80910300747j29a24c2ap19b94549057c3ff5@mail.gmail.com> In-Reply-To: <5388baf80910300747j29a24c2ap19b94549057c3ff5@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Chris Blackwell wrote: ... > > > DocumentRoot "C:\Users\Chris\Documents\Eclipse Workspace\mysite" Bad idea, almost always... > ServerName mysite.dev > > ProxyPreserveHost On > ProxyPassReverse / ajp://localhost:8009/ > > RewriteEngine On > # If it's a CFML (*.cfc or *.cfm) request, just proxy it to Tomcat: > RewriteRule ^(.+\.cf[cm])$ ajp://localhost:8009$1 [P] > > > Ok so this seems to work, apart from one really annoying snag. in the > coldfusion war theres a directory call CFIDE which contains amongst other > things the administrator. I can browse to > http://mysite.dev:8080/CFIDE/administrator/index.cfm and it happily shows me > the login screen, however if it try to access that directory through apache > it sends me the source code for the file. .. and that's why. With your above RewriteRule, you are intercepting and proxying to Tomcat /some/ URLs. The ones you are not intercepting and proxying with the rule, go through to Apache, which serves them normally as files, using its DocumentRoot as the base. So, probably, if you request "http://yourhost/ROOT/WEB-INF/web.xml", you'll also see the contents of the file (tomcat_dir)/webapps/ROOT/WEB-INF/web.xml, including anything in it that you would not want users to see (passwords etc..). --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org