Empty 'current url' for Django deployed with Nginx and fastcgi

核能气质少年 提交于 2019-11-30 16:05:47

You are missing the PATH_INFO parameter.

fastcgi_param PATH_INFO $fastcgi_script_name;

See the nginx docs: http://wiki.nginx.org/DjangoFastCGI

If you try "nginx PATH_INFO django" in your favourite search engine, it looks like some users had to remove the SCRIPT_NAME parameter as well to get it to work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!