Created
June 29, 2020 22:29
-
-
Save fmagrosoto/156859f63c6855a023ee0305e9e407db to your computer and use it in GitHub Desktop.
Configuración de un host virtual en Apache usando Catalina
This file contains 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
# 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