Just to update this problem a little more, I've opened a question on serverfault with some additional information which I'll include here.
http://serverfault.com/questions/134863/nginx-fastcgi-problems-with-django My manage.py fastcgi command. > python manage.py runfcgi method=threaded host=127.0.0.1 port=8001 > pidfile=mysite.pid minspare=4 maxspare=30 daemonize=false > > And the versions nginx version: nginx/0.7.62 Django svn trunk rev 13013 I realize that not everyone will have experience with my setup, but since I've never had it actually work I'm not married to it. (I'm just working off of the django advent article) I'd like to keep nginx, but I'd love to hear about other people's setups that do work. -Francis --- Francis Gulotta wiz...@roborooter.com On Wed, Apr 21, 2010 at 5:45 PM, Francis Gulotta <wiz...@roborooter.com>wrote: > I'm deploying my first django app. I'm familiar with nginx and fastcgi's. > Currently I get a 404 page regardless of the url and for some reason a > double slash > For http://www.site.com/admin/ > > Page not found (404) > > Request Method: GET > > Request URL: http://www.site.com/admin// > > > > My urls.py from the debug output - which work in the dev server. > > Using the URLconf defined in ahrlty.urls, Django tried these URL patterns, >> in this order: > > ^listings/ > > ^admin/ > > ^accounts/login/$ > > ^accounts/logout/$ > > > my nginx config > > server { > > listen 80; > > server_name beta.ahrlty.com; > > access_log /home/ahrlty/ahrlty/logs/access.log; > > error_log /home/ahrlty/ahrlty/logs/error.log; > > >> location /static/ { > > alias /home/ahrlty/ahrlty/ahrlty/static/; > > break; > > } > > >> location /media/ { > > alias >> /usr/lib/python2.6/dist-packages/django/contrib/admin/media/; > > break; > > } > > >> location / { > > include /etc/nginx/fastcgi_params; > > fastcgi_pass 127.0.0.1:8001; > > break; > > } > > } > > > and my fastcgi_params > > fastcgi_param QUERY_STRING $query_string; > > fastcgi_param REQUEST_METHOD $request_method; > > fastcgi_param CONTENT_TYPE $content_type; > > fastcgi_param CONTENT_LENGTH $content_length; > > >> fastcgi_param SCRIPT_NAME $fastcgi_script_name; > > fastcgi_param REQUEST_URI $request_uri; > > fastcgi_param DOCUMENT_URI $document_uri; > > fastcgi_param DOCUMENT_ROOT $document_root; > > fastcgi_param SERVER_PROTOCOL $server_protocol; > > >> fastcgi_param GATEWAY_INTERFACE CGI/1.1; > > fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; > > >> fastcgi_param REMOTE_ADDR $remote_addr; > > fastcgi_param REMOTE_PORT $remote_port; > > fastcgi_param SERVER_ADDR $server_addr; > > fastcgi_param SERVER_PORT $server_port; > > fastcgi_param SERVER_NAME $server_name; > > >> fastcgi_param PATH_INFO $fastcgi_script_name; > > >> # PHP only, required if PHP was built with --enable-force-cgi-redirect > > fastcgi_param REDIRECT_STATUS 200; > > > I'm having a hard time debugging this one. Does anything jump out at > anybody? > > Thanks! > > -Francis > > --- > Francis Gulotta > wiz...@roborooter.com > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.