这是indexloc提供的服务,不要输入任何密码
Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions src/etc/inc/system.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1964,6 +1964,11 @@ http {

access_log syslog:server=unix:/var/run/log,facility=local5 combined;

upstream php-fpm {
server unix:{$g['varrun_path']}/php-fpm.socket;
keepalive 16;
}

EOD;

if ($captive_portal !== false) {
Expand Down Expand Up @@ -2065,7 +2070,8 @@ EOD;
try_files \$uri =404; # This line closes a potential security hole
# ensuring users can't execute uploaded files
# see: https://forum.nginx.org/read.php?2,88845,page=3
fastcgi_pass unix:{$g['varrun_path']}/php-fpm.socket;
fastcgi_pass php-fpm;
fastcgi_keep_conn on;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
# Fix httpoxy - https://httpoxy.org/#fix-now
Expand All @@ -2077,7 +2083,8 @@ EOD;
location ~ (^/status$) {
allow 127.0.0.1;
deny all;
fastcgi_pass unix:{$g['varrun_path']}/php-fpm.socket;
fastcgi_pass php-fpm;
fastcgi_keep_conn on;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
# Fix httpoxy - https://httpoxy.org/#fix-now
Expand Down