Opened 19 years ago
Closed 19 years ago
#602 closed defect (fixed)
Django error when getting the root of the site with FCGI
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | major | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
I'm running lighttpd with FCGI and redirecting all traffic to Django-fcgi using the "/" prefix in the lighttpd fcgi configuration.
When I go to mysite.com/ I get the following error:
45 # trailing slash or a file extension. 46 print old_url 47 if settings.APPEND_SLASH and (old_url[1][-1] != '/') and ('.' not in old_url[1].split('/')[-1]): 48 new_url[1] = new_url[1] + '/' 49 if new_url != old_url: global settings = <module 'django.conf.settings' from '/opt/tomcat/django/conf/settings.pyc'>, settings.APPEND_SLASH = True, old_url = ['w4.grono.net:8000', ''], ].split undefined
When I print out the old_url variable it contains:
['mysite.com', ]
I don't know an easy fix for this but you guys probably do :)
Change History (2)
comment:1 by , 19 years ago
comment:2 by , 19 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Ok it came out to be lighttpd strangeness.
Note:
See TracTickets
for help on using tickets.
Apparently the first part of the path gets 'eaten' somewhere so '/' ends up as , and '/foo/bar/' ends up as '/bar/'