Skip to content

Instantly share code, notes, and snippets.

@fmagrosoto
Created June 29, 2020 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fmagrosoto/156859f63c6855a023ee0305e9e407db to your computer and use it in GitHub Desktop.
Save fmagrosoto/156859f63c6855a023ee0305e9e407db to your computer and use it in GitHub Desktop.
Configuración de un host virtual en Apache usando Catalina
# Este archivo debe de ir en /etc/apache2/vhosts
# Y se usa para cada proyecto.
# El URL del DocumentRoot apunta hacia la carpeta donde está el repo
# y no precisamente donde está el htdocs de Apache (/Library/WebServer/Documents).
#
# Recuerda agregar el dominio a la tabla de hosts (/etc/hosts)
<VirtualHost *:80>
DocumentRoot "/Users/fmagrosoto/Documents/Repositorios/prueba"
ServerName prueba.local
<Directory "/Users/fmagrosoto/Documents/Repositorios/prueba">
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment