On Mon, 28 Jun 1999, Scott Robertson wrote:
On Mon, 28 Jun 1999, Andreas Kostyrka wrote:
On Mon, 28 Jun 1999, Amos Latteier wrote:
Nope. The right place is probably ZPublisher, as it happens to be the same old game that I've done to BoboHTTPServer (running on real host:port, pretending to be host:port/dir for Bobo).
hmmm... The problem we're having is say we have the following rewrite rule:
RewriteRule ^/(.*) /home/zope/Zope.cgi/sub1/$1
_apache_ will rewrite the URL and set PATH_TRANSLATED to: /home/zope/Zope.cgi/sub1/sub1/<whatever>
Note: the double sub1's. Are you sure this happens directly, because this sound like an accumulation problem. You request www.sub1.at, and get www.main.at/sub1/index_html, but with a BASE tag referencing it to www.sub1.at/sub1/, now the next request will come for www.sub1.at/sub1/testpage, which will be answered by www.main.at/sub1/sub1/testpage, with a BASE tag of www.sub1.at/sub1/sub1/ and so on, if you do not take any precautions of putting your own BASE tags into the html.
I do not belive ZPublisher cares about the host portion of the URL.
ZPublisher cares indirectly, because of REQUEST['URL0'] and companions, and because it inserts a BASE tag with the full absolute URL upon returning HTML code.
So if we could only get apache to rewrite the PATH_INFO from the url properly everything should work. Hmmm, that seems to work for me here :)
Andreas -- Win95: n., A huge annoying boot virus that causes random spontaneous system crashes, usually just before saving a massive project. Easily cured by UNIX. See also MS-DOS, IBM-DOS, DR-DOS, Win 3.x, Win98.