Can anyone explain how SCRIPT_NAME is calculated? I'm using mod_rewrite to do per-developer cgi directories, with sometimes amusing results in SCRIPT_NAME. I've seen in the forums that SCRIPT_NAME is the wsgi 'mount point', but this is clearly a simplification, because there's not always a straight-forward mapping to the mount point.
E.g., with rewrite rules something like ~foo/cgi-bin/bar -> /mount/ cgi-bin-foo/bar, with wsgi mounted at /mount, how would SCRIPT_NAME be determined? If I dump it from python, I get inconsistent results. Sometimes it's ~fo, sometimes it's ~foo/, sometimes part of the path is repeated. It's very weird. Looks like some kind of pattern match that's going wrong. Is SCRIPT_NAME being set by apache, or mod_wsgi? In the mod_wsgi code it looks like it's only doing some minor cleanup on the value calculated by apache. -- You received this message because you are subscribed to the Google Groups "modwsgi" 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/modwsgi?hl=en.
