Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article Apache log files - per site log files:


Re: Apache log files - per site log files
Posted by Anonymous (80.143.xx.xx) on Wed 30 Nov 2005 at 18:33
I've just set up the following skeleton directory on one of our new servers:

drwxr-s--- 4 root vhosts skel/
drwxr-s--- 4 root vhosts skel/www
drwxrws--- 2 root vhosts skel/www/htdocs
-rw-r--r-- 1 root vhosts skel/www/htdocs/_disabled.php
drwxr-s--- 2 root vhosts skel/www/logs
drwxrwsr-x 2 root vhosts skel/mailboxes

This directory allow me to "cp -a skel www.example.com" in /home/vhosts. As you can see the logs directory is owned be root and has the "s" (sticky?) bit set. That way all files created in that directory will keep the group vhosts.

Since only root has write access people are not able to delete the files in there, but read them.

So far it seems to work fine.

Balu
PS: The "_disabled.php" is some kind of placeholder file (added to Apaches DirectoryIndex option) and is used to display "created for customer ABC".

Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search