[Zope] Problem with SiteAccess

Leonardo Graf graf@imrt.mavt.ethz.ch
Thu, 04 Jan 2001 14:18:24 +0100


At 13:13 03.01.01 -0600, you wrote:
>* Leonardo Graf (graf@imrt.mavt.ethz.ch) [010103 09:16]:
> > Hello,
> >
> > I'm trying to use the SiteAccess Product as discribed in the HowTo: Using
> > Apache with ZServer (NOT Zope.cgi). Unforunately things don't work as
> > described.
> >
> > My ZServer is listening on www.myserver.com:9080/somesite. I would like to
> > be able to access the ZServer through apache via the URL www.somesite.com
> > (to do virtual hosting).
> >
> > The ProxyPass directives work well (the pages get served properly), but 
> the
> > URL's in my pages still contain the complete URL's of the ZServer, like
> > <img src="http://www.myserver.com:9080/somesite/images/some.gif"> instead
> > of <img src="http://www.somesite.com/images/some.gif">. The same is true
> > for normal links. Ok, it's not so bad, things work (no broken links), but
> > it is a little bit ugly. I thought the SiteAccess Product should handle
> > these problems, by putting a SiteRoot object in the somesite folder.
> >
> > Or do I have to write an AccessRule ? And how would that look like ?
> >
> > Thanks a lot, regards, Leonardo Graf
>
>It sounds like your SiteRoot object doesn't have "Base" (aka the
>Base URL) set correctly.
>
>It should be set to:
>http://www.somesite.com
>
>The SiteAccess Rule is only needed if you have *multiple* hosts
>served out from one host.  You sound like you only have one.
>
>Ciao!
>
>--
>There is no sweeter sound than the crumbling of your fellow man.
>         -- Groucho Marx
>
>The Doctor What: A really hip dude               http://docwhat.gerf.org/
>docwhat@gerf.org                                                   KF6VNC

Funny, I just restarted my ZServer and now everything works like magic, 
perhaps I should do that more often... sorry for the inconvenience,

Regards, Leonardo Graf