CentOS 7 Virtual Host Not Working

1- Enable Options +SymLinksIfOwnerMatch
2- See my Virtual Host example

Add below code at beginning of the virtual host section:

<VirtualHost *:80>
ServerName fail
</VirtualHost>

Add below code to the end of the virtual host section:

<VirtualHost *:80>
ServerAlias *
</VirtualHost>

Leave a Reply