[Zope] Apache and zope

AM list_subscriber@neurobs.com
Wed, 05 Feb 2003 16:31:14 -0800


you have two macines a.com and b.com. You want to serve your content=
=20
only out of a.com. a.com runs apache and b.com runs zope.

now in apache on a.com create a virtual host ( ip based not name base=
d -=20
look at apache docs )  which uses rewrite rules as described in the l=
ink.

on b.com instantiate a VHM and start zope.

that will basically take care of all your needs.

Now this scenario means that your zope instance is only accessible fr=
om=20
a.com. If however you dont want to use a sub domain name, only rewrit=
e=20
rules, that means that your zserver is directly accessible from the=
=20
outside world and not through a.com

One of the main reasons for fronting zope with apache is to prevent t=
his=20
( stability, robustness and serving static contents too ... )

So if you dont want the sub domain, why dont you fire up an instance =
of=20
apache on b.com itself and use rewrite rules or mod_proxy

hth

AM



Tiller, Michael (M.M.) wrote:

>Now I'm confused.  I want browsers to call http://www.abc.foo/new-si=
te and be redirected to http://www.xyz.foo:8080.  Isn't VHM for the r=
everse?!?
>
>--
>Mike
>
> =20
>
>>-----Original Message-----
>>From: AM [mailto:list_subscriber@neurobs.com]
>>Sent: Wednesday, February 05, 2003 3:47 PM
>>To: Tiller, Michael (M.M.)
>>Subject: Re: [Zope] Apache and zope
>>
>>
>>Look at the link provided in the thread. You should try VHM=20
>>instead of=20
>>SiteRoot.
>>http://www.zope.org/Members/regebro/Zope_and_Apache
>>
>>hth
>>AM
>>
>>Tiller, Michael (M.M.) wrote:
>>
>>   =20
>>
>>>I a newbie and using ideas like the ones on that web page,=20
>>>     =20
>>>
>>my attempts at redirection have not been very successful. =20
>>Perhaps somebody can point out what I'm doing wrong?
>>   =20
>>
>>>What I have found is that you can setup redirection with=20
>>>     =20
>>>
>>your web server.  But the problem is that Zope sometimes uses=20
>>absolute links which cause problems.  For example, lets say I=20
>>have http://www.abc.foo/new-site redirected to=20
>>http://www.xyz.foo:8080.  I made a SiteRoot at the toplevel=20
>>of my Zope site, but I still be problems because Zope=20
>>generates HTML that includes references like "/misc_/..." or=20
>>"/p_/..." or "/manage_zmi_logout".  As a result, the browser=20
>>looks for http://www.abc.foo/manage_zmi_logout but=20
>>http://www.abc.foo isn't a Zope site (likewise for "/misc_"=20
>>and "/p_").
>>   =20
>>
>>>The article you mention doesn't cover these details.  So my=20
>>>     =20
>>>
>>question is:
>>   =20
>>
>>>a) Am I doing something stupid (quite possible)?!?
>>>b) If not, what is the exhaustive list of things I need to=20
>>>     =20
>>>
>>have special redirection rules for and/or
>>   =20
>>
>>>c) Why isn't Zope smarter about this?!?
>>>
>>>Like I said, I'm a newbie and I've been trying to find=20
>>>     =20
>>>
>>information on this but I haven't been successful.  If=20
>>somebody can just point me to the right resource, that might=20
>>help me a lot.
>>   =20
>>
>>>--
>>>Mike
>>>
>>>=20
>>>
>>>     =20
>>>
>>>>-----Original Message-----
>>>>From: Oliver Marx [mailto:Oliver@tekk.dk]
>>>>Sent: Wednesday, February 05, 2003 8:54 AM
>>>>To: Mario Bianchi
>>>>Cc: zope@zope.org
>>>>Subject: Re: [Zope] Apache and zope
>>>>
>>>>
>>>>Yes
>>>>
>>>>http://www.zope.org/Members/regebro/Zope_and_Apache
>>>>
>>>>Search Zope-site for Zope Apache
>>>>
>>>>\Oliver
>>>>
>>>>--=20
>>>>Direkt=F8r / Managing Director
>>>>Oliver Marx
>>>>
>>>>TEKK
>>>>Lyngbyvej 20
>>>>DK-2100 K=F8benhavn =D8
>>>>
>>>>Main: +45 39 15 80 60
>>>>Direct: +45 39 15 80 62
>>>>
>>>>http://www.tekk.dk
>>>>
>>>>
>>>>_______________________________________________
>>>>Zope maillist  -  Zope@zope.org
>>>>http://mail.zope.org/mailman/listinfo/zope
>>>>**   No cross posts or HTML encoding!  **
>>>>(Related lists -=20
>>>>http://mail.zope.org/mailman/listinfo/zope-announce
>>>>http://mail.zope.org/mailman/listinfo/zope-dev )
>>>>
>>>>  =20
>>>>
>>>>       =20
>>>>
>>>_______________________________________________
>>>Zope maillist  -  Zope@zope.org
>>>http://mail.zope.org/mailman/listinfo/zope
>>>**   No cross posts or HTML encoding!  **
>>>(Related lists -=20
>>>http://mail.zope.org/mailman/listinfo/zope-announce
>>>http://mail.zope.org/mailman/listinfo/zope-dev )
>>>
>>>
>>>=20
>>>
>>>     =20
>>>
>>--=20
>>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
>> Aseem Mohanty=09=09=09=09=09=09
>>=09  =20
>> Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706=
=20
>> (R) 510 7696011 (M) 510 3014871 (O) 510 5279231=09=09  =09
>>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>>=3D=3D=3D=3D=3D=3D=3D=09=09=09=09=09=09=09
>>=09  =09
>> "I saw `cout' being shifted "Hello world" times to the left and =
=20
>>  stopped right there!!"                        -- Steve Gonedes =
=20
>>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=20
>>
>>
>>
>>   =20
>>
>
>
> =20
>

--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 Aseem Mohanty=09=09=09=09=09=09=09  =20
 Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706=
=20
 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231=09=09  =09
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=09=09=09=09=09=09=09=09  =09
 "I saw `cout' being shifted "Hello world" times to the left and =
=20
  stopped right there!!"                        -- Steve Gonedes =
=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=20