未验证 提交 674cf231 编写于 作者: L liwenjie119 提交者: GitHub

fix kodexplore nginx info (#6053)

修复nginx的path_info,以及可道云中查看数据库的adminer的依赖
上级 3ed02932
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册