Skip to content

Instantly share code, notes, and snippets.

@sebolio
Created December 15, 2014 19:37
Show Gist options
  • Save sebolio/a10471bd80fca51e4aa2 to your computer and use it in GitHub Desktop.
Save sebolio/a10471bd80fca51e4aa2 to your computer and use it in GitHub Desktop.
Vhost por usuario (apache2)
<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>
@sebolio
Copy link
Author

sebolio commented Dec 15, 2014

Poner en el sites-enabled/developer.conf (u otro archivo dispuesto para vhosts)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment