[Zope] zope on virtual www servers

Steve Spicklemire steve@estel.uindy.edu
Mon, 14 Jun 1999 08:09:45 -0500 (EST)


Hi Sebastian,

This is due to Zope's <Base..> tags. here's my workaround.
There may(must?) also be a way to tell zope to use a different
base, using SCRIPT_NAME or something... but I haven't had time
to sort that all out...

<VirtualHost foo.spvi.com>
..
blah...
..
RewriteEngine on
RewriteRule ^/Customers/foo(.*) /$1
RewriteCond %{HTTP:Authorization}  ^(.*)
RewriteRule ^/(.*) /usr/local/etc/zope/Zope.cgi/Customers/foo$1 [e=HTTP_CGI_AUTHORIZATION:%1,t=application/x-httpd-cgi,l]
</VirtualHost>

>>>>> "Sebastian" == Sebastian Luehnsdorf <sfl@beehive.de> writes:

    Sebastian> hi!

    Sebastian> i'm trying to configure apache to run zope on a virtual
    Sebastian> server. i simply added the path of the site within the
    Sebastian> zope file tree into the rewrite rule, so it looks like
    Sebastian> this now:

    Sebastian>  RewriteRule ^/(.*)
    Sebastian> /[...]/cgi-bin/Zope/Customers/<sitename>/$1 [...]

    Sebastian> when i access the site, i get that path
    Sebastian> (Customers/<sitename>) prefixed to the url which is
    Sebastian> definitely not what i want... does anybody have a
    Sebastian> solution for my problem?

    Sebastian> ciao, basti

    Sebastian> ---------------------------------------------------------------------
    Sebastian> sebastian f. luehnsdorf beehive elektronische medien
    Sebastian> gmbh
    Sebastian> ---------------------------------------------------------------------
    Sebastian> http://basti.beehive.de http://www.beehive.de
    Sebastian> mailto:basti@beehive.de mailto:service@beehive.de fon:
    Sebastian> (+49 30) 84 78 20 fax: (+49 30) 84 78 22 99


    Sebastian> _______________________________________________ Zope
    Sebastian> maillist - Zope@zope.org
    Sebastian> http://www.zope.org/mailman/listinfo/zope

    Sebastian> (For developer-specific issues, use the companion list,
    Sebastian> zope-dev@zope.org -
    Sebastian> http://www.zope.org/mailman/listinfo/zope-dev )