-----BEGIN PGP SIGNED MESSAGE-----
Chris Withers wrote:
> Dieter Maurer wrote:
>>> Worse yet, if you go to:
>>> ...you get:
>>> ['virtual_hosting', '/something', 'x', 'y', 'z']
>>> Anyone got any ideas as to what's going on here?
>> It is very strange that you want to define a Python Script as
>> root of your site. This use case is simple not supported.
> Who said anything about it being the root of a site? ;-)
> I guess this wouldn't actually happen if the python script was after the
> vritual host's root...
> I actually bumped into this trying to get the antique ZRoundup product
> to work on Zope 2.11. The fix wasn't that pretty:
> (see the __before_traverse__ hook code)
>> A VHM needs to get control twice -- once to set things up
>> and once to set the virtual root.
>> It ensures to get control the second time by adding additional traversal
> I bet repoze's VHM replacement doesn't need this ;-)
> I wonder how they do it?
- The first (WSGI middleware) uses either extra headers or the
Zope2-style URL tokens to adjust the CGI environment variables
(SERVER_NAME, HTTP_HOST, SCRIPT_NAME, and PATH_INFO), plus a
stock WSGI environment variable ('wsgi.url_scheme'). See
- The second part (in the application) just uses those values
according to their "stock" CGI meanings, and sets the 'SERVER_URL'
key in the request. Once that is set, the stock ZPublisher
virtual hosting machinery is neutered. ;) See
Tres Seaver +1 540-429-0999 [EMAIL PROTECTED]
Palladion Software "Excellence by Design" http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Zope maillist - Zope@zope.org
** No cross posts or HTML encoding! **
(Related lists -