#8490: path_info equals script_name on lighttpd using fastcgi under a
subdirectory
when accessed without a trailing '/'
-------------------------------------+--------------------------------------
Reporter: mtrichardson | Owner: nobody
Status: reopened | Milestone: 1.2
Component: Core framework | Version: SVN
Resolution: | Keywords: path_info, script_name,
lighttpd, fastcgi
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
-------------------------------------+--------------------------------------
Changes (by qingfeng):
* status: closed => reopened
* resolution: fixed =>
* milestone: 1.0 => 1.2
Comment:
nginx+django project conf file:
http://code.djangoproject.com/attachment/ticket/8490/nginx.conf
http://code.djangoproject.com/attachment/ticket/8490/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/8490/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/8490#comment:8>
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
-~----------~----~----~----~------~----~------~--~---