Skip to content

Instantly share code, notes, and snippets.

@Freeaqingme
Created March 8, 2013 12:28
Show Gist options
  • Save Freeaqingme/5116149 to your computer and use it in GitHub Desktop.
Save Freeaqingme/5116149 to your computer and use it in GitHub Desktop.
My virtual host
<Virtualhost *:80>
VirtualDocumentRoot "/home/dolf/Projects/vhosts/%1/public"
ServerName vhosts.dev
ServerAlias *.dev
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
ErrorLog "/var/log/apache2/vhosts-error_log"
<Directory "/home/dolf/Projects/*">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteRule ^.*$ index.php [NC,L]
</Directory>
# <Directory "/www/dev/*">
# Options Indexes FollowSymLinks MultiViews
# AllowOverride All
# Order allow,deny
# Allow from all
# </Directory>
setenv GLITCH_APP_ENV development
</Virtualhost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment