【发布时间】:2011-01-07 11:08:15
【问题描述】:
我已经设置了 Django 的 FastCGI + NGINX,但它只适用于根 url:任何对 http://example.com/anything 的请求都会重定向到 http://example.com。 Django 的内部服务器工作正常,NGINX 静态文件服务和根 URL 的 FastCGI 处理正常,错误日志清晰。这是我的配置的服务器部分:
server {
listen 80;
server_name example.com;
location / {
fastcgi_pass localhost:8000;
include fastcgi_params;
}
location /static/ {
alias /root/web_development/src/web_development/static/;
}
}
我做错了什么?提前致谢。
【问题讨论】:
-
fastcgi_params的内容是什么?