I run a small redhat server with a couple of virtual hosts. Here is my
congiguration:
# NameVirtualHost
www.mydomain.com
<VirtualHost *:80>
ServerName
www.mydomain.com
ServerAlias mydomain.com
ScriptAlias /cgi-bin/ /home/johnboy/public_html/cgi-bin/
DirectoryIndex index.php index.html index.htm index.php3
LogLevel warn
HostNameLookups on
Documentroot "/home/johnboy/public_html"
ErrorLog /var/log/httpd/mydomain.com_error_log
CustomLog /var/log/httpd/mydomain.com_access_log combined
<Directory "/home/johnboy/public_html">
Options Indexes Includes FollowSymLinks ExecCGI
AllowOverride All
Allow from all
Order allow,deny
</Directory>
</VirtualHost>
If I want to give johnboy logs to his domain and do it like so:
ErrorLog /home/johnboy/public_html/logs/mydomain.com_error_log
CustomLog /home/johnboy/public_html/logs/mydomain.com_access_log combined
apache does indeed generate the logs but they are owned by root and belong to
the root group. Obviously this will not work for johnboy. What do I have to
do to make the logs for the virtual site, mydomain.com, belong to user
johnboy? I have googled for this but came up with nothing.
Thank you.
--
My email address is invalid, thanks to
all of these rotten spambots.
Email me by assembling this address:
tinykitty "ay tea" newsguy "dee oh tea" com
~Ohmster