httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] virtualhost "CustomLog not allowed here", RewriteEngine
Date Sat, 12 Nov 2005 23:19:07 GMT
On 11/12/05, n mike <mike.ddn@gmail.com> wrote:
> PROBLEM:
>  Unable to figure out how to use .htaccess to write a custom log file.
>
>  EXAMPLE ERROR:
>  [Sat Nov 12 12:18:48 2005] [alert] [client 72.14.207.99]
> /home/virtual/site84/fst/var/www/html/.htaccess: CustomLog
> not allowed here
>

Can't be done.  Check the "context" of the CustomLog directive in the
docs and you'll see it isn't allowed in .htaccess.  This is because
all logs must be opened at startup.

You should simply get a decent log processor to extract what you want
from the main access log.

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