httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Bray" <nood...@gmail.com>
Subject Re: [users@httpd] separate log for directories
Date Wed, 05 Dec 2007 16:07:20 GMT
On 05/12/2007, fmorales@atea.es <fmorales@atea.es> wrote:
> Hello, how can I write separate log files for :
>
> mydomain.com/directory1
>
> and
>
> mydomain.com/directory2 ?
>
> Iam trying ErrorLog and CustomLog inside <Directoty></Dictory> but is
> not possible to do it.

The logging directives are specific to server entries (main server or
vhosts) not directories, so placing these directives in <Directory
blocks won't have an effect.

It is possible to have per-directory logging, but only by using
environment variables and conditional logging. See the 'conditional
logs' section, here:

http://httpd.apache.org/docs/2.2/logs.html#accesslog

-- 
noodl

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