update
This commit is contained in:
25
nginx-php/Demo/SingleNode/nginx/http.d/80.conf
Normal file
25
nginx-php/Demo/SingleNode/nginx/http.d/80.conf
Normal file
@@ -0,0 +1,25 @@
|
||||
server {
|
||||
listen 80;
|
||||
location /xxxx/ {}
|
||||
location ~ ^/xxxx/.+\.php$ {
|
||||
client_max_body_size 1024m;
|
||||
client_body_buffer_size 1024m;
|
||||
fastcgi_buffer_size 256k;
|
||||
fastcgi_buffers 8 256k;
|
||||
fastcgi_busy_buffers_size 512k;
|
||||
fastcgi_temp_file_write_size 512k;
|
||||
expires -1s;
|
||||
include fastcgi_params;
|
||||
try_files $uri =404;
|
||||
fastcgi_pass unix:/var/lib/php7/phpfpm.sock;
|
||||
fastcgi_index index.php;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
break;
|
||||
}
|
||||
location / {
|
||||
return 403;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user