Eu tenho um web site rodando em ubuntu 16.04 vps com o Apache. Recentemente, não consigo acessar a página principal da web usando seu endereço IP. por favor ajude-me a depurar a configuração do meu servidor.
main-site.conf:
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName X.X.X.X
DocumentRoot /var/www/html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
apache2.conf contém:
...
<Directory />
Options FollowSymLinks
AllowOverride all
</Directory>
<Directory /usr/share>
AllowOverride all
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride all
</Directory>
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
...
e / etc / hosts :
127.0.0.1 localhost
127.0.1.1 guest-desktop
185.211.88.62 student.aut.ac.ir student
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
Tags apache2 ubuntu-16.04