Skip to content

Instantly share code, notes, and snippets.

@willianmano
Created April 5, 2013 22:14
Show Gist options
  • Save willianmano/5323096 to your computer and use it in GitHub Desktop.
Save willianmano/5323096 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
DocumentRoot "/var/www/soa-server/public"
ServerName soa.dev
SetEnv APPLICATION_ENV development
Header set Access-Control-Allow-Origin *
<Directory "/var/www/soa-server/public">
Options Indexes Multiviews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<Limit GET HEAD POST PUT DELETE OPTIONS>
Order Allow,Deny
Allow from all
</Limit>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !\.(js|ico|gif|jpg|png|css|htm|html|txt|mp3)$ index.php
RewriteRule .? - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</Directory>
</VirtualHost>
<VirtualHost *:80>
DocumentRoot "/var/www/soa-server/public"
ServerName soatest.dev
SetEnv APPLICATION_ENV testing
Header set Access-Control-Allow-Origin *
<Directory "/var/www/soa-server/public">
Options Indexes Multiviews FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
<Limit GET HEAD POST PUT DELETE OPTIONS>
Order Allow,Deny
Allow from all
</Limit>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !\.(js|ico|gif|jpg|png|css|htm|html|txt|mp3)$ index.php
RewriteRule .? - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</Directory>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment