location ~ ^/((api|archiver)/.*|(install|uc_server)/[^/]+|[^/]+)\.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fcgi.conf; fastcgi_param SCRIPT_FILENAME $documnet_root$fastcgi_script_name; }
discuz X 的php最小化安全配置,只在特定目录允许php执行,禁止木马运行
回复