Networking Forums

Networking Forums > Computer Networking > Linux Networking > virtual hosts, ownership of logs

Reply
Thread Tools Display Modes

virtual hosts, ownership of logs

 
 
Ohmster
Guest
Posts: n/a

 
      08-08-2004, 03:33 AM
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulated NAT Traversal on Virtual Box | Two Virtual Interface - eth-0/eth1 Sumit Linux Networking 0 06-24-2011 01:09 AM
Apache virtual hosts not resolving correctly Ninjak on FW Linux Networking 5 01-12-2007 12:56 PM
hosts.deny and hosts.allow problem dan Linux Networking 3 06-15-2005 07:26 PM
Apache Virtual Hosts Rich Grise Linux Networking 6 12-25-2004 10:45 PM
Virtual hosts + proxypass question Chris Stoddart Linux Networking 1 12-06-2004 10:56 AM



1 2 3 4 5 6 7 8 9 10 11