Created
December 15, 2014 19:37
-
-
Save voltuer/a10471bd80fca51e4aa2 to your computer and use it in GitHub Desktop.
Vhost por usuario (apache2)
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
<Virtualhost *:80> | |
# Con una solicitud tipo: usuario.proyecto.dev | |
VirtualDocumentRoot "/home/%1/www/%2" | |
ServerName personales.dev | |
ServerAlias *.dev | |
UseCanonicalName Off | |
LogFormat "%V (%v) %h %l %u %t \"%r\" %s %b" vcommon | |
ErrorLog "/var/www/dev/vhosts-error_log" | |
<Directory "/home/*/www/*"> | |
Options Indexes FollowSymLinks MultiViews | |
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
Poner en el
sites-enabled/developer.conf
(u otro archivo dispuesto para vhosts)