Okay. I have this in my .htaccess:
# enable PHP error logging
php_flag log_errors on
php_value error_log logs/php_errors.log
Which works, but I would like for the error-log to be named according to which subdomain is active (different subdomains use the same files, hence I can't just differentiate location based on specific files being loaded).
I tried to do this (but it doesn't work):
# enable PHP error logging
php_flag log_errors on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} !^www
RewriteCond %{HTTP_HOST} ^([^\.]+)\.([^\.]+)\.([^\.]+)$
php_value error_log logs/php_errors_$1.log
It just returns php_errors_$1.log in the folder. So, is there a way I can assign that to a variable, and use that variable in the filename?