Last active
June 23, 2016 15:52
-
-
Save RenzoTejada/5794100 to your computer and use it in GitHub Desktop.
Virtualhost en linux - Ubuntu
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
1.- vemos que hosts tenemos | |
/etc/apache2/sites-available$ cat /etc/hosts | |
2.- colocar esto en caso de que no levante el host virtual (no se habilitado el modo rewrite de apache) | |
sudo a2enmod rewrite | |
3.-Registramos el hosts que estamos haciendo y colocamos alli (127.0.0.1 virtualhost.local) | |
/etc/apache2/sites-available$ sudo geany /etc/hosts | |
4.- crear el archivo virtual host | |
/etc/apache2/sites-available$ sudo gedit virtualhost.local.conf | |
5.- Incluimos el contenido del siguiente Gist que es la configuracion del virtual con respecto a virtualhost.local | |
Link : https://gist.github.com/RenzoTejada/5794094 | |
6.- damos el permiso para que se ejecute el virtual hosts | |
/etc/apache2/sites-available$ sudo a2ensite virtualhost.local.conf | |
7.- reiniciar el servidor | |
/etc/apache2/sites-available$ sudo /etc/init.d/apache2 restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment