Revert "Enable CGI for exopages using php-fpm"

This reverts commit 52fc0762e8.

CGI has serious security issues since all CGI scripts run as the http user
This commit is contained in:
Anthony Wang 2023-06-01 16:30:47 +00:00
parent 52fc0762e8
commit b0941d271f
Signed by untrusted user: a
GPG key ID: 42A5B952E6DD8D38

View file

@ -37,22 +37,6 @@ server {
internal;
}
location ~ \.php$ {
# 404
try_files $fastcgi_script_name =404;
# default fastcgi_params
include fastcgi_params;
# fastcgi settings
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
fastcgi_index index.php;
# fastcgi params
fastcgi_param DOCUMENT_ROOT $realpath_root;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
}
location / {
try_files $uri $uri.html $uri/ = @fallback;
}