修改Nginx配置文件,在server虚拟主机中添加如下配置:
location ~ .cgi$ { root html; fastcgi_pass unix:/usr/local/nginx/logs/nginx-fcgi.sock; fastcgi_index index.cgi; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
修改Nginx配置文件,在server虚拟主机中添加如下配置:
location ~ .cgi$ { root html; fastcgi_pass unix:/usr/local/nginx/logs/nginx-fcgi.sock; fastcgi_index index.cgi; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }