You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by fm...@atea.es on 2007/12/05 15:22:37 UTC

[users@httpd] separate log for directories

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.

Any idea?
Thanks


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


Re: [users@httpd] separate log for directories

Posted by Vincent Bray <no...@gmail.com>.
On 05/12/2007, fmorales@atea.es <fm...@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