Forum Moderators: phranque

Message Too Old, No Replies

Virtualhost log file not being created.

What do I need to change or check?

         

mack

5:34 pm on Jun 16, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Hi all,

Here is a snippet from my httpd.conf file

<VirtualHost *>
ServerName www.example.com
DocumentRoot /home/username/public_html/
CustomLog /home/username/logs/access.log combined
</VirtualHost>

The problem is that no logs are bein writen to /home/username/logs/access.log I have made sure that the perms for /logs allow the file to be writen, "mkdr logs, chmod 777 logs"

I am using the exact same format for all my virtual hosts, but this one is the only cause for concern.

Any ideas appreciated.

Mack.

coopster

6:06 pm on Jun 16, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Sorry, but have to ask the obvious, mack --

You have a LogFormat defined as "combined"?
You restarted Apache after adding the virtual hosts directive?
/home/username/logs/ exists?

mack

6:32 pm on Jun 16, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Yep I restarted after I set the entry in httpd.conf

I just can't figure this one. Each virtual entry is a copy/paste of the same entry with the username in domain section changed. I just double checked, the username/logs does exist.

Mack.

coopster

7:16 pm on Jun 16, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



And the <VirtualHost> container is an asterisk (*) for each and every one?

mack

7:53 pm on Jun 16, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



Yea I used the asterix as a wildcard but limit ports on the router.

Mack.