httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Question about how apache handles file opening with logging
Date Thu, 11 Oct 2007 14:42:46 GMT
On 10/10/07, Joseph Marcelletti <jmarcelletti@gmail.com> wrote:

> I actually use a different log format then combinedio, but the point
> is made. The question is, if I have say 50 virtual hosts with the same
> format.. 1 customlog for a log in their home directory, and a
> customlog that is IDENTICAL in every virtualhost.. does apache use 1
> file handle for the global.log? Is this the most efficient way to
> accomplish the goal? (The goal being having X information about each
> vhost logged to the same global file).

I think you'll get 1 file handle for each CustomLog line. You can use
lsof to verify.

What you're doing probably isn't a good idea anyway. It appears you
are writing log files to user directories. As the security warnings in
the docs tell you, this allows your users to gain root on the server.
You are better off logging to one log file (or one piped-logging
program) and post-splitting the log lines for your individual user
logs.

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