Skip to content

Instantly share code, notes, and snippets.

@scarwu
Created August 12, 2012 10:58
Show Gist options
  • Save scarwu/3331293 to your computer and use it in GitHub Desktop.
Save scarwu/3331293 to your computer and use it in GitHub Desktop.
Nginx Server Setting for RNFS
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