All Apache virtual hosts shows default website page

142 Views Asked by At

Here is a problem. I am running on CentOS 7 with Httpd(Apache) installed. After installation default DocumentRoot is /var/www/html. And my site domain is avect.ru. Then I've created a virtual host with the link cp.avect.ru. But when I enter it, it shows content NOT from specified DocumentRoot /var/www/cp, but /var/www/html.

Idk why this happens. NameServers are not working, because they are deprecated. Help please! Here is part of httpd.conf:

<VirtualHost *:80>
    ServerName www.cp.avect.ru
    ServerAlias *.avect.ru
    DocumentRoot /var/www/cp/
    ErrorLog /var/log/cp-error.log
    CustomLog /var/log/cp-requests.log combined
</VirtualHost>
0

There are 0 best solutions below