Answer the question
In order to leave comments, you need to log in
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>
sudo a2ensite test-blog.ru
service apache2 reload
Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question