Re: Logging query strings from a re-write rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ah, let's see your CustomLog directive, please.

On Mon, Jul 14, 2008 at 4:22 AM, Foster, Stephen (ASPIRE)
<steve.foster@xxxxxxxxxxxxxx> wrote:
> Hi there,
>
> I think you may have misunderstood the issue. Functionally my re-write
> rule is working okay but its logging the query string of the URL that I
> am sending the browser to.
> If that makes sense..
>
> Steve
>
> -----Original Message-----
> From: Francois Gingras [mailto:francois.gingras@xxxxxxxxx]
> Sent: 10 July 2008 14:16
> To: users@xxxxxxxxxxxxxxxx
> Subject: Re:  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) <steve.foster@xxxxxxxxxxxxxx>
> 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_HO
> ST}%{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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>
>
> 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.
>
>
> ---------------------------------------------------------------------
> 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@xxxxxxxxxxxxxxxx
>   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>
>

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux