Skip to content

Instantly share code, notes, and snippets.

@raphaelluchini
Created November 18, 2013 22:26
Show Gist options
  • Save raphaelluchini/7536497 to your computer and use it in GitHub Desktop.
Save raphaelluchini/7536497 to your computer and use it in GitHub Desktop.
Snippet to configure apache VirtualHost environment for Backbone Boilerplate
<VirtualHost *:80>
ServerName NAME
DocumentRoot DIRECTORY
<Directory DIRECTORY>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment