forked from exozyme/nginx
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:
parent
52fc0762e8
commit
b0941d271f
1 changed files with 0 additions and 16 deletions
16
pages.conf
16
pages.conf
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue