Apache log file location for virtual host
I'm using Debian 6.0.5 (squeeze) 64bit.
In the file /etc/apache2/sites-available/troppo-jewelry.com I have the following entry:
I can access the server no problem. But the log files are written to /var/www/vhosts/troppo-jewelry.com/ and not to /var/www/vhosts/troppo-jewelry.com/logs/
# Indexes + Directory Root.
# CGI Directory
ScriptAlias /cgi-bin/ /var/www/vhosts/troppo-jewelry.com/cgi-bin/
CustomLog /var/www/vhosts/troppo-jewelry.com/logs/access.log combined
I then changed the logfile entry to this:
and suddenly the files are written to the correct folder /var/www/vhosts/troppo-jewelry.com/logs/
CustomLog /var/www/vhosts/troppo-jewelry.com/logs/access.log vhost_combined
As far as I understand, "vhost_combined" or "combined" are just nicknames for the formatting of the log file. Why does this alter were they are stored???
Any help sincerely appreciated. This is driving me mad...
[SOLVED]Apache log file location for virtual host
Hmmm, I don't know what happens, but after rebooting the machine, I tried again, and this time it works with both logfile formats...
Anyway, thanks for reading....