[Zope] VirtualHostMonster

Oleg Broytmann Oleg Broytmann <phd@mail2.phd.pp.ru>
Mon, 12 Feb 2001 12:34:56 +0300 (MSK)


Hi!

On Fri, 9 Feb 2001, Evan Simpson wrote:
> Perhaps the simplest (if a bit awkward) answer, would be something like:
>
> /VirtualHostBase/http/www.foo.com/root/foo_folder/VirtualHostRoot/_vh_Zope/$1

   Looks reasonably good.

> In this example, "VirtualHostRoot" processing consumes any following path
> elements that start with "_vh_", strip off the prefix, and use the result as
> the virtual path. (The "$1" is where the remainder of the path is inserted
> by Apache).

   What about longer virtual path?

/VirtualHostBase/http/www.foo.com/root/foo_folder/VirtualHostRoot/_vh_Zope/_vh_foo/$1

   or

/VirtualHostBase/http/www.foo.com/root/foo_folder/VirtualHostRoot/_vh_Zope/foo/$1

   ?

Oleg.
----
     Oleg Broytmann     http://www.zope.org/Members/phd/     phd@phd.pp.ru
           Programmers don't die, they just GOSUB without RETURN.