I have been trying to configure running both php 7.0 and 7.2 on one host, certain sites using the former and others the latter. That's another thread though.
However, I have some more questions given that my configuration is x.x.x.x/site1, x.x.x.x/site2 etc, I have separate conf files in /etc/httpd/conf.d/, one for each of site1, site2 etc, using this format:
<VirtualHost *:80>
ServerAdmin xxxx
ServerName x.x.x.x
DocumentRoot /var/www/html/
Include /etc/httpd/conf.d/rh-php70-php-fpm.conf
ErrorLog /var/log/httpd/site1-error.log
CustomLog /var/log/httpd/site1-access.log combined
</VirtualHost>
The above is for x.x.x.x/site1, the others are similar except using site2 etc etc. The sites are in /var/www/html/site1, /var/www/html/site2 etc.
- Is this the correct format? Ie, I shall have one <VirtualHost *:80> in each of those files? Or, does this need to be configured differently?
- I want to log x.x.x.x/site1 errors to its own file, site1-error.log, and all accesses to site1 to its own file, the customlog file above. Site2 should be logged to its files etc. Yet I seem to end up with logentries for different subsites in the files which makes me suspect something is incorrectly configured...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
However, I have some more questions given that my configuration is x.x.x.x/site1, x.x.x.x/site2 etc, I have separate conf files in /etc/httpd/conf.d/, one for each of site1, site2 etc, using this format:
<VirtualHost *:80>
ServerAdmin xxxx
ServerName x.x.x.x
DocumentRoot /var/www/html/
Include /etc/httpd/conf.d/rh-php70-php-fpm.conf
ErrorLog /var/log/httpd/site1-error.log
CustomLog /var/log/httpd/site1-access.log combined
</VirtualHost>
The above is for x.x.x.x/site1, the others are similar except using site2 etc etc. The sites are in /var/www/html/site1, /var/www/html/site2 etc.
- Is this the correct format? Ie, I shall have one <VirtualHost *:80> in each of those files? Or, does this need to be configured differently?
- I want to log x.x.x.x/site1 errors to its own file, site1-error.log, and all accesses to site1 to its own file, the customlog file above. Site2 should be logged to its files etc. Yet I seem to end up with logentries for different subsites in the files which makes me suspect something is incorrectly configured...
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org