Created
April 5, 2013 22:14
-
-
Save willianmano/5323096 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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