[Zope] zope and mod_rewrite

Oleg Broytmann Oleg Broytmann <phd@phd.fep.ru>
Thu, 31 May 2001 19:17:20 +0400 (MSD)


On Thu, 31 May 2001, jacob walcik wrote:
> i was under the impression that you could, as long as a valid service
> was answering on that port.  in the VirtualHostMonster i've created, it
> says:
> If your Zope is running on port 8080, and you want generated URLs not to
> include this port number, you must use
> "/VirtualHostBase/http/www.foo.com:80".
>
> i have zope running on 8080, and i'd prefer to not have the port in the
> url.  if i've interpretted this incorrectly, please let me know.

   No, I meant different problem. You are rewriting from Aapche (running on
port 80) to localhost:8080. This AFAIK requires proxy ([P] flag to the
RewriteRule).

> > > RewriteRule ^/(.*)
> > > http://localhost:8080/VirtualHostBase/http/utilities.iensemble.com:80/utilities/VirtualHostRoot/$1
> >
> >    I am not sure whether you can rewrite URL to a different port. At
> > least, without proxy flag.

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