Después de tener tu servidor configurado en algunas ocasiones tendrás el siguiente error:

 

Not Found

The requested URL / was not found on this server.

 

Para solucionarlo debemos ejecutar los siguientes comandos:

 

Comando: sudo nano /etc/apache2/sites-enabled/000-default.conf

 

Y debe quedar así, pueden copiar y pegar el siguiente texto:

 

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName nombredomino
    ServerAlias www.nombredominio

    DocumentRoot /var/www/html
    
    <Directory /var/www/html>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log
    CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Ctrl + X para salir, "Y" para guardar, Enter para confirmar.

Si tienen el sitio web en otra carpeta deben cambiar la ruta.

virtualhost

Comando: sudo a2enmod rewrite

Comando: sudo /etc/init.d/apache2 restart

 

Ver tutorial de AWS