Re: [Zope] Apache and zope
you have two macines a.com and b.com. You want to serve your content 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 based - look at apache docs ) which uses rewrite rules as described in the link. 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 from a.com. If however you dont want to use a sub domain name, only rewrite rules, that means that your zserver is directly accessible from the outside world and not through a.com One of the main reasons for fronting zope with apache is to prevent this ( stability, robustness and serving static contents too ... ) So if you dont want the sub domain, why dont you fire up an instance of 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-site and be redirected to http://www.xyz.foo:8080. Isn't VHM for the reverse?!?
-- Mike
-----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 instead of SiteRoot. http://www.zope.org/Members/regebro/Zope_and_Apache
hth AM
Tiller, Michael (M.M.) wrote:
I a newbie and using ideas like the ones on that web page,
my attempts at redirection have not been very successful. Perhaps somebody can point out what I'm doing wrong?
What I have found is that you can setup redirection with
your web server. But the problem is that Zope sometimes uses absolute links which cause problems. For example, lets say I have http://www.abc.foo/new-site redirected to http://www.xyz.foo:8080. I made a SiteRoot at the toplevel of my Zope site, but I still be problems because Zope generates HTML that includes references like "/misc_/..." or "/p_/..." or "/manage_zmi_logout". As a result, the browser looks for http://www.abc.foo/manage_zmi_logout but http://www.abc.foo isn't a Zope site (likewise for "/misc_" and "/p_").
The article you mention doesn't cover these details. So my
question is:
a) Am I doing something stupid (quite possible)?!? b) If not, what is the exhaustive list of things I need to
have special redirection rules for and/or
c) Why isn't Zope smarter about this?!?
Like I said, I'm a newbie and I've been trying to find
information on this but I haven't been successful. If somebody can just point me to the right resource, that might help me a lot.
-- Mike
-----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
-- Direktør / Managing Director Oliver Marx
TEKK Lyngbyvej 20 DK-2100 København Ø
Main: +45 39 15 80 60 Direct: +45 39 15 80 62
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
-- ================================================================== Aseem Mohanty
Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 =========================================================== =======
"I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
-- ================================================================== Aseem Mohanty Neurobehavioral Systems Inc, 828 San Pablo Ave, Albany, CA 94706 (R) 510 7696011 (M) 510 3014871 (O) 510 5279231 ================================================================== "I saw `cout' being shifted "Hello world" times to the left and stopped right there!!" -- Steve Gonedes ==================================================================
participants (1)
-
AM