Skip to content

Instantly share code, notes, and snippets.

@spraveenitpro
Created December 6, 2013 12:23
Show Gist options
  • Save spraveenitpro/7822900 to your computer and use it in GitHub Desktop.
Save spraveenitpro/7822900 to your computer and use it in GitHub Desktop.
Virtual Host configuration
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName yourname.dev
DocumentRoot path to custom directory/
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory path to custom directory/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</VirtualHost>
<directory /path to custom directory/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment