httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francois Gingras" <francois.ging...@gmail.com>
Subject Re: [users@httpd] Logging query strings from a re-write rule
Date Thu, 10 Jul 2008 13:16:02 GMT
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) <steve.foster@hmrcaspire.com> 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 <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message