mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-18 17:33:31 +00:00
fix kodexplore nginx info (#6053)
修复nginx的path_info,以及可道云中查看数据库的adminer的依赖
This commit is contained in:
parent
3ed02932ae
commit
674cf23141
@ -44,12 +44,14 @@ gen_nginx_config() {
|
||||
location = /50x.html {
|
||||
root html;
|
||||
}
|
||||
location ~ \.php$ {
|
||||
location ~ \.php(.*)$ {
|
||||
root $project_directory;
|
||||
try_files \$uri = 404; # PHP 文件不存在返回404
|
||||
fastcgi_pass unix:/var/run/php7-fpm.sock; # 通过 Unix 套接字执行 PHP
|
||||
fastcgi_index index.php;
|
||||
fastcgi_split_path_info ^(.+\.php)(.*)$;
|
||||
fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name; # 修复 Nginx fastcgi 漏洞
|
||||
fastcgi_param PATH_INFO \$fastcgi_path_info;
|
||||
include /etc/nginx/fastcgi_params;
|
||||
}
|
||||
}
|
||||
@ -75,7 +77,7 @@ gen_php_config() {
|
||||
unserialize_callback_func =
|
||||
serialize_precision = 100
|
||||
|
||||
open_basedir = $storage_device_path:/tmp/:/proc/
|
||||
open_basedir = $storage_device_path:/tmp/:/proc/:/usr/bin/
|
||||
disable_functions =
|
||||
disable_classes =
|
||||
expose_php = On
|
||||
|
Loading…
Reference in New Issue
Block a user