#8874: problem with URLs on FastCGI after update to 1.0
-------------------------------------+--------------------------------------
Reporter: kyprizel | Owner: kyprizel
Status: reopened | Milestone: 1.2
Component: Core framework | Version: SVN
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------+--------------------------------------
Comment (by qingfeng):
nginx+django project conf file:
http://code.djangoproject.com/attachment/ticket/8874/nginx.conf
http://code.djangoproject.com/attachment/ticket/8874/sina.conf
urls.py:
{{{
from django.conf.urls.defaults import *
urlpatterns = patterns('',
(r'^hello/', 'demo.views.hello'),
)
}}}
demo/views.py
{{{
from django.http import HttpResponse
def hello(request):
return HttpResponse("Hello")
}}}
Django 1.1 Test:
curl -I http://localhost/hello
Restuls:
{{{
HTTP/1.1 404 NOT FOUND
Server: nginx/0.7.62
Date: Wed, 16 Sep 2009 09:23:29 GMT
Content-Type: text/html
Connection: keep-alive
}}}
use new patch:
http://code.djangoproject.com/attachment/ticket/8874/wsgi_r11339.diff
curl -I http://localhost/hello
Results:
{{{
HTTP/1.1 200 OK
Server: nginx/0.7.62
Date: Wed, 16 Sep 2009 10:27:11 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Vary: Cookie
}}}
--
Ticket URL: <http://code.djangoproject.com/ticket/8874#comment:13>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---