Re: logging php usage and directory index pages

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

 



Can anyone help with this?

alex@xxxxxxxxxxxx wrote:
Two questions about logging:

1. Can I log whether or not the current request was operated on by mod_php?

I want to determine what % of my requests are PHP. I've tried to determine this based on filename, but with ForceType and other configuration directives, it's possible for a file to be parsed as PHP even if it doesn't have the .php file extension.

I saw the log formatter "%...{Foobar}n The contents of note Foobar from another module.", and that sounds promising, but I'm really not sure what it means, or what value I might use for {Foobar}.
http://httpd.apache.org/docs/2.0/mod/mod_log_config.html#formats

2. Can I log the actual file that was served, even for directory indexes?

I've tried the '%f' log format, and for http://site.com requests, I get a log of '/var/www/site.com/htdocs/'. If the directory index file was 'index.html', I'd like '/var/www/site.com/htdocs/index.html' to get into the log somehow.


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