Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
26 rader
520 B
26 rader
520 B
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name _;
|
|
root /webroot/;
|
|
|
|
client_max_body_size 100m;
|
|
|
|
access_log /dev/stdout;
|
|
error_log /dev/stdout info;
|
|
|
|
location ~ ^\/share_v2.php\/([^\/]+\/[^\/\?]+)(?:.*)$ {
|
|
fastcgi_pass unix:/var/run/php-fpm.sock;
|
|
fastcgi_param SCRIPT_FILENAME $document_root/share_v2.php;
|
|
fastcgi_param UPLOADED_FILENAME $1;
|
|
include fastcgi_params;
|
|
fastcgi_intercept_errors on;
|
|
}
|
|
location = / {
|
|
return 404;
|
|
}
|
|
location ~* ^\/[^\/]+\.(php|sh|conf)$ {
|
|
return 404;
|
|
}
|
|
}
|
|
|