问题描述
- linux nginx fastcgi c 404
-
日志中的错误:2015/03/06 20:23:57 [error] 10551#0: *13 open() "/usr/share/nginx/html/1.cgi" failed (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /1.cgi HTTP/1.1", host: "127.0.0.1"
找不到路径:
/usr/share/nginx/html/1.cgi但是我的nginx.conf文件中是这么写的:
location /1.cgi$ {
include /etc/nginx/fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.cgi; fastcgi_param SCRIPT_FILENAME /usr/share/nginx/fastcgi$fastcgi_script_name; }
好像是没效果,请大神指点
等大神路过
解决方案
这个cgi文件路径正确吗,文件是否可以访问
时间: 2024-10-31 14:40:49