Answer the question
In order to leave comments, you need to log in
How to find the reason for redirecting the main page of a virtual web host to apache2?
Good afternoon, I wish you all good mood!
There is a VPS on Ubuntu-1604-xenial-64-minimal. Installed on it:
DirectoryIndex index.html index.php
127.0.0.1 example.com
to the "hosts" file does not work.Listen 80
<VirtualHost *:80>
ServerName example.com
DirectoryIndex index.html index.php
ServerAdmin [email protected]
DocumentRoot /var/www/vhosts/example.com
ErrorLog /var/www/vhosts/error.log
CustomLog /var/www/vhosts/access.log combined
</VirtualHost>
111.111.111.111 - - [01/Nov/2016:15:21:05 +0100] "GET /index.php HTTP/1.1" 303 255 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question