I have an issue where access messages and error messages are not logged to individual logs on a server hosting multiple public subdomains, eg 1.2.3.4/site1 and 1.2.3.4/site2, instead they end up in a central log. I would like to change the logging to files specific to each subdomain. This is a LAMP stack on CentOS 7 and running php 7.2.
Each subdomain, eg site1 and site2, has its own conf file. Below is an example called site1.conf which would control settings only for 1.2.3.4/site1. All conf files are in /etc/httpd/conf.d/.
<VirtualHost *:80>
ServerAdmin xxx
ServerName 1.2.3.4/site1
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/site1-error.log
CustomLog /var/log/httpd/site1-access.log combined
</VirtualHost>
1.2.3.4, of course, is not the real IP address but a placeholder.
I am missing something basic but what? Are the conf files incorrectly named?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Each subdomain, eg site1 and site2, has its own conf file. Below is an example called site1.conf which would control settings only for 1.2.3.4/site1. All conf files are in /etc/httpd/conf.d/.
<VirtualHost *:80>
ServerAdmin xxx
ServerName 1.2.3.4/site1
DocumentRoot /var/www/html
ErrorLog /var/log/httpd/site1-error.log
CustomLog /var/log/httpd/site1-access.log combined
</VirtualHost>
1.2.3.4, of course, is not the real IP address but a placeholder.
I am missing something basic but what? Are the conf files incorrectly named?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org