我试图找出为什么$ENV{PATH_INFO}在我的新服务器上的Perl脚本中是空的。 这是我的nginxconfiguration:
location ~ \.cgi$ { try_files $uri =404; gzip off; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $remote_addr; proxy_set_header Host $host; proxy_pass http://127.0.0.1:8181; }
我也尝试添加:
proxy_set_header PATH_INFO $fastcgi_path_info;
但是这似乎没有什么区别。 还有什么我需要做的吗?
软件版本: