refactor(): move to wonderfall/nginx-php (possible fix #10)

This commit is contained in:
Hardware
2017-08-29 22:25:00 +02:00
parent aacde24533
commit 94d9d894c3
9 changed files with 40 additions and 125 deletions

View File

@@ -0,0 +1,30 @@
server {
listen 8888;
root /rainloop;
index index.php;
charset utf-8;
location ^~ /data {
deny all;
return 404;
}
location / {
try_files $uri $uri/ index.php;
}
location ~* \.php$ {
try_files $uri =404;
include /nginx/conf/fastcgi_params;
fastcgi_split_path_info ^(.+\.php)(/.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_index index.php;
fastcgi_pass unix:/php/run/php-fpm.sock;
fastcgi_intercept_errors on;
fastcgi_request_buffering off;
fastcgi_param REMOTE_ADDR $http_x_real_ip;
}
}