Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 32552 invoked from network); 10 Jul 2008 13:16:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jul 2008 13:16:44 -0000 Received: (qmail 46570 invoked by uid 500); 10 Jul 2008 13:16:34 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 46551 invoked by uid 500); 10 Jul 2008 13:16:34 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 46540 invoked by uid 99); 10 Jul 2008 13:16:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 06:16:34 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of francois.gingras@gmail.com designates 209.85.198.244 as permitted sender) Received: from [209.85.198.244] (HELO rv-out-0708.google.com) (209.85.198.244) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jul 2008 13:15:40 +0000 Received: by rv-out-0708.google.com with SMTP id c5so3046185rvf.24 for ; Thu, 10 Jul 2008 06:16:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=26/8HnD/+RNpOMrYY4z+4JS5iu21wjimYke1f0766/U=; b=GD0ppmiVsrodP5SXuO595UKDQWiEhUDmuaNeTA8rjtUc4IQEU36G8r0BEWYyo+TXG7 DdGFNWkJuCqbIBIVyKWHU5lf/m8gLxH6hrj9431hO7b8OpIQpbF8YpKz0Y3SQ4MYRsLI llmLAz8bBF1L1pu+XXI8KBLSHzSK4zvhb33dw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=shUpyihcqz4HsxptvZhUb/YSst6RUa+30fqVhaSGO33IuqWMZCxZK0gOfEtPFqEyP+ RKNczVu23K2Ab7ukm2NJXNvRPWZwvdsh5pqsuTM3v2aLUXeG9JdVg/89FZCgpn5ojIH5 VAG8+4QNLnVs7qkXg4sSa2MrWICk1qhHycoRY= Received: by 10.140.132.8 with SMTP id f8mr4814210rvd.206.1215695762616; Thu, 10 Jul 2008 06:16:02 -0700 (PDT) Received: by 10.141.197.3 with HTTP; Thu, 10 Jul 2008 06:16:02 -0700 (PDT) Message-ID: <5d771ebb0807100616n2e686592mdc7bf89bbfd726dc@mail.gmail.com> Date: Thu, 10 Jul 2008 09:16:02 -0400 From: "Francois Gingras" To: users@httpd.apache.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Logging query strings from a re-write rule Steve, Without digging too much in your particular issue, note that RewriteCond will only match the query string if you use %{QUERY_STRING}; You can check the following guide for examples: http://wiki.apache.org/httpd/RewriteQueryString Frank On 7/10/08, Foster, Stephen (ASPIRE) wrote: > > > > > Hi, > > > > I have implemented a re-write rule that captures the incoming requests, > checks for a cookie and then directs the user to another system to > authenticate and get a cookie before being allowed to access pages under the > webserver. E.g: > > > > RewriteCond %{HTTP_HOST} !="" > > RewriteCond %{REQUEST_URI} !=/server-status > > RewriteCond %{REQUEST_URI} !=/server-status?auto > > RewriteCond %{REQUEST_URI} !=/heartbeat/heartbeat.htm > > RewriteCond %{HTTP_COOKIE} !.*iiswlssignonuser* > > RewriteRule .*$ > http://www.steve.co.uk/Identification/WLSLogon.asp\?URL=http://%{HTTP_HOST}%{REQUEST_URI}&path=%{REQUEST_URI}&domain=.steve.co.uk&name=mwar > > e [L] > > > > Functionaly this works perfectly but in the access logs I am getting the > Query string of the re-direct URL being shown against the initial request. > E.g > > I am accessing > http://internal.steve.co.uk/TestWebApp/index.html > > > > 2008-07-10 10:53:02 10.101.X.X internal.steve.co.uk GET > /TestWebApp/index.html HTTP/1.1 302 367 2025 > ?URL=http://internal.steve.co.uk/TestWebApp/index.html&path=/TestWebApp/index.html&domain=.steve.co.uk&name=mware > Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1) - - > > 2008-07-10 10:53:05 10.101.X.X internal.steve.co.uk GET > /TestWebApp/index.html HTTP/1.1 200 396 60460 Mozilla/4.0 (compatible; MSIE > 6.0; Windows NT 5.1; SV1; InfoPath.1) - - > > > > Any thoughts?? Like I say its working fine, just logging wrongly. > > > > Cheers > > > > Steve > > Capgemini is a trading name used by the Capgemini Group of companies which > includes Capgemini UK plc, a company registered in England and Wales (number > 943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21 > 6DB. > > This message contains information that may be privileged or confidential and > is the property of the Capgemini Group. It is intended only for the person > to whom it is addressed. If you are not the intended recipient, you are not > authorized to read, print, retain, copy, disseminate, distribute, or use > this message or any part thereof. If you receive this message in error, > please notify the sender immediately and delete all copies of this message. -- Francois Gingras (i): http://ccds.ca (p): (514) 243-8233 (f): (514) 731-5834 --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org