Skip to content

Instantly share code, notes, and snippets.

@Jesm
Last active November 21, 2015 21:55
Show Gist options
  • Save Jesm/94b1c9c12067f217b1e4 to your computer and use it in GitHub Desktop.
Save Jesm/94b1c9c12067f217b1e4 to your computer and use it in GitHub Desktop.
Define virtual host in apache for development
<VirtualHost 127.0.0.1>
DocumentRoot "C:/example/app"
ServerName example.dev:80
<Directory "C:/example/app">
Options FollowSymLinks Indexes
AllowOverride All
Order deny,allow
Allow from 127.0.0.1
Deny from all
Require all granted # If the project returns "internal error", try to comment this line.
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment