Nginx fastcgi split path info with mailman
Posted
by
eyadof
on Server Fault
See other posts from Server Fault
or by eyadof
Published on 2013-11-10T17:53:00Z
Indexed on
2013/11/10
22:01 UTC
Read the original article
Hit count: 277
i'm using mailman with nginx to get its web interface this my nginx config :
location /cgi-bin/mailman {
root /usr/lib/;
fastcgi_split_path_info (/cgi-bin/mailman[^/]*)/(.*)$;
include /etc/nginx/fastcgi_params;
fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $fastcgi_path_info;
fastcgi_intercept_errors on;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
}
it's seems to work good when i call mydomain.com/cgi-bin/mailman/listinfo
, but when I request something like : mydomain.com/cgi-bin/mailman/listinfo/mylist
i get 403
and in nginx error log :
FastCGI sent in stderr: "Cannot chdir to script directory (/usr/lib/cgi-bin/mailman/listinfo)" while reading response header from upstream
I tried every regex available to get it work but it still give 403
any help or any clue to get it work .
© Server Fault or respective owner