Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#5320 closed (duplicate)

request.path doesn't work properly under fastcgi

Reported by: julian Owned by: Malcolm Tredinnick
Component: HTTP handling Version: dev
Severity: Keywords: request path fastcgi
Cc: jumo@… Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by James Bennett)


my django-app runs under with fastcgi.

the output of "request.path" in a view called for ^$ is just "/" not "/appl/" as it should be...reproduce it:

from django.conf.urls.defaults import *
from appl.views import start

urlpatterns = patterns('',
	(r'^', start),

from django.shortcuts import render_to_response

def start(request):
	return render_to_response('base.html',{'path':request.path})



running with fastcgi under returns:


but should


I know this can be solved with a rewrite-rule in a .htaccess, but this shouldn't be the proper way to fix bugs.

Change History (3)

comment:1 by James Bennett, 17 years ago

Description: modified (diff)

(cleaning up formatting)

comment:2 by James Bennett, 17 years ago

Resolution: duplicate
Status: newclosed

Closing as a duplicate of #1516 because that's the underlying issue.

comment:3 by julian, 17 years ago

thanks for reformatting and applying all that changes.

maybe you can tell me: if the underlying issue has been known for so long, why isn't it solved yet?

Note: See TracTickets for help on using tickets.
Back to Top