Shahms King wrote:
[EMAIL PROTECTED] wrote:
| Damjan said:
|
|>If my quixote application is running with mod_scgi, mod_python or as
|>CGI, how do I get, from quixote, what is its base path.
|
|
| quixote.get_request().environ['SCRIPT_NAME']
|
| That's the URL part that matches the CGI script or <Location> directive.
| Add a trailing slash to get your application's home page.
That only works sometimes. Due to the way Apache works, getting the base
path or SCRIPT_NAME is occasionally impossible and sometimes difficult.
Doesn't Quixote depend on it? How can Quixote traverse the URL without
knowing which component to start with? I thought that was why the SCGI
adapters set SCRIPT_NAME for Quixote.
~ Specifically, it is impossible to get the base path if the script is
invoked from any non-trivial "LocationMatch" or "DirectoryMatch"
directive (e.g. what's the base path of
<LocationMatch "/somepath/*/stuff">?) Of course, such directives should
be rare and avoidable.
I didn't know it was even possible to use LocationMatch or Directory*
with Quixote.
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users