Logging issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux