On Sat, Dec 26, 2009 at 6:54 PM, Chris Withers <[email protected]>wrote:
> Karen Tracey wrote:
> > In my case, environ.get('SCRIPT_URL', u'') and
> > environ.get('REDIRECT_URL', u'') both return empty.
>
> I wonder what SCRIPT_URL is and why it's empty for you but not for me?
>
>
It's set by mod_rewrite:
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
Enabling it and turning it on for this virtual host I see the behavior you
describe, when I access the root page without a trailing slash. With a
trailing slash things are fine.
There is at least one bug open on empty PATH_INFO handling:
http://code.djangoproject.com/ticket/9435
though it doesn't sound like it's focused on exactly the same issue, and
fixing this one for the special case of empty PATH_INFO may be easier than
the overall problem that is the concern of that ticket. But I don't have
time at the moment to really look at it closely, nor to check if there's
another open ticket that might match this one more closely.
Karen
--
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en.