J
J
jelezo2015-12-26 14:30:22
Apache HTTP Server
jelezo, 2015-12-26 14:30:22

Why does apache display the default page?

LAMP is deployed on Ubuntu.
I wrote in etc/hosts:
127.0.0.1 test-blog.ru
In /etc/apache2/sites-available I created the test-blog.ru.conf file with the contents:

<VirtualHost *:80>
    ServerName test-blog.ru
    DocumentRoot /var/www/test-blog.ru
    <Directory /var/www/test-blog.ru>
        AllowOverride All
    </Directory>
</VirtualHost>

Wrote the commands:
sudo a2ensite test-blog.ru
service apache2 reload

However, when switching to test-blog.ru in the browser, it redirects to the standard apache2 page, that is, to var/www/html.
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Ogarkov, 2015-12-26
@ogarich89

Disable the default page sudo a2dissite DEFAULT PAGE.
You have 2 sites knocking on the same IP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question