在nginx php解析段增加以下
fastcgi_split_path_info ^(.+\.php)(.*)$;完整的配置如下
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
server {
listen 80;
server_name mydomain.vm www.mydomain.vm;
access_log /app/logs/nginx/mydomain_access.log;
error_log /app/logs/nginx/mydomain_error.log;
root /app/www/mydomain.vm/public;
location ~ / {
if (!-e $request_filename) {
rewrite ^(.*)$ /index.php/$1 last;
break;
}
}
location ~ [^/]\.php(/|$) {
#try_files $uri = 404;
#fastcgi_pass remote_php_ip: 9000;
fastcgi_pass unix: /dev/shm/php-cgi.sock;
fastcgi_index index.php;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
include fastcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
expires off;
access_log off;
}
location ~ .*\.(js|css)?$ {
expires off;
access_log off;
}
location ~ /\.ht {
deny all;
}
}
网友回复
python如何将影视片段中每个分镜头画面自动截图生成分镜头描述词及时间戳?
python如何结合ai对经典影视片段进行视频重绘?
python如何将html或markdown转换成word、pdf、ppt文档?
centos7如何安装pandoc?
openai发布o3/o4-mini如何做到将python内置到模型中?
如何免费白嫖gpt4.1?
mcp mysql及sqlite让ai自主操作数据库能否代替传统的应用系统开发?
selenium中Firefox WebDriver 时,--window-size参数设置窗口大小无效?
支付宝mcp如何用python接入智能体聊天服务进行收费?
微信小程序如何实现webview网页完整截图?