[Zope] VirtualHostMonster, PATH_INFO and absolute_url
Evan Simpson
evan@4-am.com
Wed, 24 Jan 2001 13:02:38 -0500
From: Itai Tavor <itai@optusnet.com.au>
> 1. When accessing http://10.0.1.21/spam PATH_INFO is
> /VirtualHostBase/http/10.0.1.21:80/MySite/VirtualHostRoot/spam, which
> breaks any method that uses PATH_INFO (For example, the login form of
> LoginManager). Can this be fixed somehow?
The Zope virtual hosting machinery doesn't adjust CGI variable.
Applications should use URL0 or URLPATH0 instead of PATH_INFO.
> 2. In this setup, if I got it right, absolute_url() for /MySite/spam
> should return http://10.0.1.21/spam. But it returns
> http://10.0.1.21/MySite/spam. Something's broken?
Yep, VirtualHostMonster has a bug, now fixed in CVS. Thanks!
Cheers,
Evan @ digicool & 4-am