httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
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 <> 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

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


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message