Skip to content

Instantly share code, notes, and snippets.

@ramingar
Last active September 16, 2021 10:58
Show Gist options
  • Select an option

  • Save ramingar/3705965d8561d41bf9ff to your computer and use it in GitHub Desktop.

Select an option

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
# 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