[Zope] Multiple domains from one server process?

Scott Robertson sroberts@codeit.com
Mon, 28 Jun 1999 18:59:35 -0700 (PDT)


On Mon, 28 Jun 1999, Andreas Kostyrka wrote:

> On Mon, 28 Jun 1999, Scott Robertson wrote:
> > 
> > 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.
> 

If you turn rewrite debugging on to level 9 you'll see it happen.
---------------------------------------------------
- Scott Robertson             Phone: 714.972.2299 -
- CodeIt Computing            Fax:   714.972.2399 -
-                http://codeit.com                -
---------------------------------------------------