zope on virtual www servers
hi! i'm trying to configure apache to run zope on a virtual server. i simply added the path of the site within the zope file tree into the rewrite rule, so it looks like this now: RewriteRule ^/(.*) /[...]/cgi-bin/Zope/Customers/<sitename>/$1 [...] when i access the site, i get that path (Customers/<sitename>) prefixed to the url which is definitely not what i want... does anybody have a solution for my problem? ciao, basti --------------------------------------------------------------------- sebastian f. luehnsdorf beehive elektronische medien gmbh --------------------------------------------------------------------- http://basti.beehive.de http://www.beehive.de mailto:basti@beehive.de mailto:service@beehive.de fon: (+49 30) 84 78 20 fax: (+49 30) 84 78 22 99
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 )
hi! i tried that suggestion but it didn't help. i still have the same path prefixed to each url. apache definitely reloaded the config files and there are absolutely no typos... this is getting weird! ciao, basti On Mon, 14 Jun 1999, Steve Spicklemire wrote:
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 f. luehnsdorf beehive elektronische medien gmbh --------------------------------------------------------------------- http://basti.beehive.de http://www.beehive.de mailto:basti@beehive.de mailto:service@beehive.de fon: (+49 30) 84 78 20 fax: (+49 30) 84 78 22 99
participants (2)
-
Sebastian Luehnsdorf -
Steve Spicklemire