Last active
September 16, 2021 10:58
-
-
Save ramingar/3705965d8561d41bf9ff to your computer and use it in GitHub Desktop.
Configuración de virtual host para usar el patrón bootstrap #vhost #virtualhost #bootstrap #apache
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Para que el servidor no te muestre un error de 'You don't have permission to access / on this server' necesitas comentar o eliminar en apache2.conf estas líneas: | |
| #<Directory /> | |
| # Options FollowSymLinks | |
| # AllowOverride None | |
| # Require all denied | |
| #</Directory> | |
| <VirtualHost *:80> | |
| ServerName miweb.local | |
| ServerAdmin webmaster@localhost | |
| DocumentRoot "/home/rafael/projects/php/miweb/public" | |
| ErrorLog ${APACHE_LOG_DIR}/miweb.local-error.log | |
| CustomLog ${APACHE_LOG_DIR}/miweb.local-access.log combined | |
| <Directory "/home/rafael/projects/php/miweb/public"> | |
| Options Indexes FollowSymLinks Includes ExecCGI | |
| AllowOverride All | |
| Order allow,deny | |
| allow from all | |
| </Directory> | |
| </VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment