So, I have a virtual host setup in apache which works fine. But, when I try to go to the ServerName set for the "main/default" in the httpd.conf it displays the virtual host site. I read the welcome.conf file and dropped some index.html/.php files in /var/www/html and commented out the lines in the welcome.conf file and that's when I get the VirtualHost site. Before I did that I would; on occasion, get the welcome.conf web page stuff.
I'm trying to set it up to be name-based virtual hosting.
Virtual Host config
Code: Select all
<VirtualHost *:80>
DocumentRoot "/var/www/VirtualHostSite"
ServerName VirtualHostSite.workisboring.com
ServerAlias www.VirtualHostSite.workisboring.com
ErrorLog "logs/VirtualHostSite.workisboring.com/error_log"
CustomLog "logs/VirtualHostSite.workisboring.com/access_log" common
<Directory /var/www/VirtualHostSite>
Options -Indexes
#<RequireAll>
# Require ip 10.0.0.150/24
#</RequireAll>
</Directory>
</VirtualHost>
Code: Select all
ServerName Defaultsite.ddns.me:80
DocumentRoot "/var/www/html"
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>