Created
July 24, 2014 19:16
-
-
Save rafamaciel/8288546301a82957a118 to your computer and use it in GitHub Desktop.
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
# /etc/<apache_dir>/<vhost_file> | |
# Use VHost host port path, example: | |
Use VHost foo.vhost.local /path/to/document/root |
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
# 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