Answer the question
In order to leave comments, you need to log in
How to fix PHP-FPM + Nginx vulnerability issue?
Actually news: https://www.opennet.ru/opennews/art.shtml?num=51749
My config
location ~ \.php$ {
limit_req zone=php2zone burst=5 nodelay;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php/php7.1-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
Answer the question
In order to leave comments, you need to log in
in php.ini set cgi.fix_pathinfo=0
And if through nginx then
location ~ \.php$ {
try_files $fastcgi_script_name =404;
fastcgi_index index.php;
fastcgi_param script_FILENAME /scripts$fastcgi_script_name;
include fastcgi_params;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question