httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Logging access to specific URL.
Date Tue, 25 Jul 2006 17:57:46 GMT
On 7/25/06, Krist van Besien <krist.vanbesien@gmail.com> wrote:
> Hello,
>
> Our website is dynamic, but for demo purposes a static copy has been
> made (using wget) and put under docroot/demo.
> Now I've been asked if it is possible to have all requests to these
> files logged to a seperate file. How to do this? I cannot add a
> customlog directive to a <location> container unfortunately...

Use a log post-processor to extract the relevant requests.  Simple and
efficient.

If you really must do it in real-time, you can use something like
SetEnvIf Request_Uri ^/demo.* demo-site
CustomLog logs/demo_log env=demo-site

See "Conditional Logs" under
http://httpd.apache.org/docs/2.2/logs.html#accesslog

Joshua.

---------------------------------------------------------------------
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