[Zope] Virtual Host Monster and <BASE ..>
Tom Cameron
tom@mooball.com
Thu, 26 Apr 2001 21:38:09 +1000
I am using the Virtual Host monster and apache rewrite rules to handle
virtual hosts. I am using Zope 2.3.0 on FreeBSD and Apache1.3.
This works very well for all folders/pages other than the virtual root. And
it works fine for the virtual root if I explicitly specify the index_html
page. i.e. http://www.domain.com/index_html.
However for the very root of the site, if I call it by the domain only i.e.
http://www.domain.com it does not work at all.
The resultant HTML contains a <BASE> tag
<base href="http://www.domain.com/sitefolder/" />
which seems to screw everything up.
All the urls on this home page start with
http://www.domain.com/sitefolder/ instead of
http://www.domain.com/ as if the host monster is not working at all.
I then tried to add a new rewrite directive to apache to send all requests
for
http://www.domain.com/ to
http://www.domain.com/index_html in a hope to avoid this problem, but that
seems to have no effect (perhaps I am not doing it correctly)
Any help would be appreciated
Thanks
Tom Cameron