Re: [users@httpd] Logging access to specific URL.

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

 



On 7/25/06, Krist van Besien <krist.vanbesien@xxxxxxxxx> 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@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