Skip to content

Instantly share code, notes, and snippets.

@dboutote
Created October 23, 2014 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dboutote/8378301b4ff260f93b13 to your computer and use it in GitHub Desktop.
Save dboutote/8378301b4ff260f93b13 to your computer and use it in GitHub Desktop.
## OLD WAY
<VirtualHost *:80>
##ServerAdmin postmaster@dummy-host2.localhost
DocumentRoot "C:/Development/personal-projects/grammys/site/application"
ServerName grammys.localhost
##ServerAlias www.dummy-host2.localhost
ServerAlias *.grammys.localhost
ErrorLog "logs/grammys.localhost-error.log"
CustomLog "logs/grammys.localhost-access.log" combined
<Directory "C:/Development/personal-projects/grammys/site/application">
Options -Indexes FollowSymLinks
AllowOverride AuthConfig FileInfo All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
## NEW WAY:
<VirtualHost *:80>
ServerName grammys.localhost
ServerAlias *.grammys.localhost
DocumentRoot "C:/Development/personal-projects/grammys/site/application"
ErrorLog "logs/grammys.localhost-error.log"
CustomLog "logs/grammys.localhost-access.log" common
<Directory "C:/Development/personal-projects/grammys/site/application">
Options +MultiViews +FollowSymLinks
AllowOverride All
<IfVersion < 2.3 >
Order allow,deny
Allow from all
</IfVersion>
<IfVersion >= 2.3>
Require all granted
</IfVersion>
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment