Score:0

Apache vhost all of a sudden is loading the default page

co flag

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.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.