On Feb 23, 2010, at 8:56 PM, tsuraan wrote: > I'm trying to run django with lighttpd 1.4 and fastcgi. I'm using the > normal recipe that has a rewrite rule to convert all requests but a > few into requests for /foo.fcgi$1, and then I have the fastcgi server > tied to that base. The problem that I have is that in django, all my > request.path variables have the /foo.fcgi prepended to them. What do > I need to do to get rid of this? Is there a variable in settings.py > that strips leading strings out of the request.path, or does somebody > know a way to get lighttpd to hide it? Under lighttpd 1.5 there's a > _pathinfo variable that can be used to get rid of the leading stuff, > but lighttpd 1.4 doesn't seem to have that, and lighttpd 1.5 is giving > me other problems. >
It's in the documentation at: <http://docs.djangoproject.com/en/dev/howto/deployment/fastcgi/#forcing-the-url-prefix-to-a-particular-value>. -- Eric Chamberlain, Founder RF.com - http://RF.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.