On 04/15/2021 08:50 PM, Jonathon Koyle wrote:
> Is / valid in a ServerName directive? I thought it only included scheme,
> host, and port?
I see. I just checked and that seems to be correct, ie my approach does not
work. I should go back to along what Dino suggested for another problem I have.
I am changing a few things but he suggested something along the lines of:
<VirtualHost *:80>
ServerAdmin xxx
ServerName 1.2.3.4
DocumentRoot /var/www/html/site1
ErrorLog /var/log/httpd/site1-error.log
CustomLog /var/log/httpd/site1-access.log combined
DirectoryIndex index.html index.php
<Directory "/site1">
Options none
AllowOverride all
Require all granted
</Directory>
</VirtualHost>
The conf files would still be in /etc/httpd/conf.d directory and still be
called site1.conf, site2.conf etc.
Should that work?
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]