You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by dz...@vline.verat.net on 2005/01/27 12:47:25 UTC

[users@httpd] Changing path of log files

Hello all,

I have a working apache2,and some users which are using 'Users' directive in
config file.It's all working fine also with .htaccess option.The question is
if it is possible to change path for logging files for each
/home/*/public_html access ? For example,each user will have something like
/home/*/public_html/logs/access_log
/home/*/public_html/logs/error_log

and the web server will append all info to this files when someone request
files under /home/*/public_html directory ?

Sincerely,

Dragan Zubac


---------------------------------------------------------------------
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] Changing path of log files

Posted by Joshua Slive <js...@gmail.com>.
On Thu, 27 Jan 2005 11:47:25 -0000, dzubac@vline.verat.net
<dz...@vline.verat.net> wrote:
> I have a working apache2,and some users which are using 'Users' directive in
> config file.It's all working fine also with .htaccess option.The question is
> if it is possible to change path for logging files for each
> /home/*/public_html access ? For example,each user will have something like
> /home/*/public_html/logs/access_log
> /home/*/public_html/logs/error_log
> 
> and the web server will append all info to this files when someone request
> files under /home/*/public_html directory ?

No, you can't do this directly, and it would be a security risk
anyway.  Never write logs to non-root-writable paths.  You should
simply post-process your logs to split out the different users.

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