Created
August 12, 2012 10:58
-
-
Save scarwu/3331293 to your computer and use it in GitHub Desktop.
Nginx Server Setting for RNFS
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
server { | |
listen 3000 default; | |
root /var/www/Development/RNFileSystem/Boot; | |
server_name localhost; | |
client_max_body_size 256m; | |
location / { | |
index index.php; | |
if (!-e $request_filename) { | |
rewrite ^(.+)$ /index.php$1 last; | |
} | |
} | |
location ~ ^/index\.php { | |
fastcgi_split_path_info ^(.+\.php)(/.+)$; | |
fastcgi_pass unix:/tmp/php-fpm.sock; | |
fastcgi_index index.php; | |
include fastcgi_params; | |
} | |
location /.htaccess { | |
deny all; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment