Neil Schemenauer wrote:
    * If you use mod_scgi and the SCGIServer command (i.e. in
      combination with Location or LocationMatch) then PATH_INFO
      while always be empty and SCRIPT_NAME will contain the whole
      path.  In that case you can use the --script-name argument to
      the Quixote scgi server to specify the script name.

Incidentally, since I brought this issue up a while, I've kind of come to terms with this behavior. At least in the context of Paste -- I use paste.urlmap to map different URLs, so I do:

<Location /foo>
  SCGIServer localhost 4000
</Location>
<Location /bar>
  SCGIServer localhost 4000
</Location>

# in paste configuration:
urlmap['/foo'] = 'foo_app.conf'
urlmap['/bar'] = 'bar_app.conf'


So, in this case actually flup's SCGI servers translate SCRIPT_NAME to PATH_INFO (if you don't give an explicit SCRIPT_NAME when configuring it, and you don't set WSGI_SCRIPT_NAME in the Apache configuration). Then urlmap pulls off the matching portion of the URL and puts it back in SCRIPT_NAME. So even though it's all a little confusing, the result is something that's easy to configure for putting multiple applications into one process.

--
Ian Bicking  /  [EMAIL PROTECTED]  / http://blog.ianbicking.org
_______________________________________________
Quixote-users mailing list
[email protected]
http://mail.mems-exchange.org/mailman/listinfo/quixote-users

Reply via email to