Created
May 25, 2012 00:54
-
-
Save santouras/2785150 to your computer and use it in GitHub Desktop.
httpd conf for wildcard dev virtualhosts
This file contains hidden or 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> | |
VirtualDocumentRoot "/var/www/%1/public" | |
ServerName vhosts.dev | |
ServerAlias *.dev | |
UseCanonicalName Off | |
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon | |
ErrorLog ${APACHE_LOG_DIR}/vhosts-error_log | |
SetEnv APPLICATION_ENV "development" | |
<Directory "/var/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
need to enable vhost_alias in /etc/apache2/mods-available/vhost-alias
$ sudo a2enmod vhost_alias