I have a few vhosts on a CentOs 7 server running apache, i have the config files in /sites-available and sym link to /sites-enabled.
It was all fine until today, but now for one of the domains it just keeps loading the apache default instead of the website. Nothing has changed at all, and the other ones work fine.
Let's assume the following domains:
dev.test.com cdn.dev.test.com dev2.test.com cdn.dev2.test.com
All were working fine, their doc roots are mounted drives /dev1 and /dev2
dev.test.com works fine, cdn.dev.test.com works fine, but dev2.test.com has just randomly stopped working. I have checked all the conf for it, nothing has changed, i also deleted the config and remade it, still doesn't work!
At the bottom of /etc/httpd/conf/httpd.conf is this:
IncludeOptional /sites-enabled/*.conf
In and the dev2.test.com.conf has this:
<VirtualHost *:80>
ServerName dev2.test.com
DocumentRoot /dev2/public_html
<Directory "/dev2">
Options Indexes FollowSymLinks MultiViews
DirectoryIndex index.html index.php
Order allow,deny
Allow from all
Require all granted
AllowOverride all
</Directory>
</VirtualHost>
Pretty stumped at this point, i even put an index.html in the /var/www/html folder and that doesn't load either.