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
* 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
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
Thanks for the answer, but the base is set correctly to http://www.somesite.com and the path to / so I'm really a bit lost here. One possibility I considered is setting the <base href="http://www.somesite.com"> tag in the header of my pages, but in that case I don't need the SiteRoot anymore... By the way, I probably want to serve multiple hosts from one later on, so it would be nice to have an example of a SiteAccess rule. Thanks and regards, Leonardo Graf
* Leonardo Graf (graf@imrt.mavt.ethz.ch) [010104 06:42]:
By the way, I probably want to serve multiple hosts from one later on, so it would be nice to have an example of a SiteAccess rule.
Here is a messy one. There is another with the SiteAccess2 documentation someplace... http://docwhat.gerf.org:9673/siteid/view_source Ciao! -- "Apparently if you play the Windows NT CD backwards you hear satanic The Doctor What: Need I say more? http://docwhat.gerf.org/ docwhat@gerf.org KF6VNC
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
participants (2)
-
Leonardo Graf -
The Doctor What