error_log per Virtual Host?
On one Linux Server running Apache and also PHP 5, we have numerous Virtual Hosts with different log documents. We can not appear to divide the php
error_log in between digital hosts.
Bypassing this setup in the
<Location> of the
httpd.conf does not appear to do anything.
Exists a means to have different php
error_logs for each and every Virtual Host?
My Apache had something similar to this in httpd.conf. Simply transform the ErrorLog and also CustomLog setups
<VirtualHost myvhost:80> ServerAdmin [email protected] DocumentRoot /opt/web ServerName myvhost ErrorLog logs/myvhost-error_log CustomLog logs/myvhost-access_log common </VirtualHost>
To set the Apache ( not the PHP ) log, the most convenient means to do this would certainly be to do :
<VirtualHost IP:Port> # Stuff, # More Stuff, ErrorLog /path/where/you/want/the/error.log </VirtualHost>
If there is no leading "/" it is thought to be loved one.