Skip to content

Instantly share code, notes, and snippets.

@rafamaciel
Created July 24, 2014 19:16
Show Gist options
  • Save rafamaciel/8288546301a82957a118 to your computer and use it in GitHub Desktop.
Save rafamaciel/8288546301a82957a118 to your computer and use it in GitHub Desktop.
# /etc/<apache_dir>/<vhost_file>
# Use VHost host port path, example:
Use VHost foo.vhost.local /path/to/document/root
# Dependence: mod_macro - http://people.apache.org/~fabien/mod_macro/
# /etc/<apache_dir>/conf.d/vhost.macro
<Macro VHost $host $dir>
SetEnv APPLICATION_ENV "dev"
<VirtualHost *:80>
ServerName $host
DocumentRoot $dir
<Directory $dir>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
</Macro>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment