Best way to run multiple sites in one Server
Well, it's a sys admin newbie question ;) I have just been handed over a server with some sites in it (not many :) ). I wonder what is the best way to run multiple sites on one computer? I heard some ways: multiple zope server running in simultaneously, using virtual monster, using PCGI, using Fast CGI. What are pros and cons for each way? What is the best way to run multiple zope sites in one computer? Are there any reading materials I can read about this matter? (I think the old Zope Administrator Guide is not enough :) ) Thanks for your help. -- mico@intermatik.co.id -- www.intermatik.co.id ICQ #12521756
At 01:22 PM 3/12/2003, Mico Siahaan wrote:
I have just been handed over a server with some sites in it (not many :) ). I wonder what is the best way to run multiple sites on one computer?
Determining what's "best" is going to depend a lot on your specific requirements. Even so, here are some things that are generally worth considering: 1. Running a proxy (Apache/Squid) in front of Zope is a very good idea in any public web situation. 2. Running a bare (unproxied) VHM is not a particularly secure solution. 3. ProxyPass and RewriteRule directives are (IMO) the most painless ways to serve Zope content from Apache. 4. Zope can be configured to only take requests from a particular IP (localhost, in your case). Determinations about fancier stuff like number of processes and ZEO are going to be heavily dependent on your requirements, environment and resources. I'd start off running Zope behind a plain Apache with vhosts and see if that performs well enough for you. That may well be all you need. HTH, Dylan
Mico Siahaan wrote:
Well, it's a sys admin newbie question ;)
I have just been handed over a server with some sites in it (not many :) ). I wonder what is the best way to run multiple sites on one computer?
I heard some ways: multiple zope server running in simultaneously, using virtual monster, using PCGI, using Fast CGI. What are pros and cons for each way? What is the best way to run multiple zope sites in one computer? Are there any reading materials I can read about this matter? (I think the old Zope Administrator Guide is not enough :) )
Thanks for your help.
There is no "best way". It all depends on what you want to host. We prefer one-site=one-zope-instance, but that will in most situations be equivalent to shooting birds with canons. We prefer Apache, mod_rewrite frontend and Zope + virtual host monster. Try to avoid CGI - it is IMHO slow. \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 http://www.tekk.dk
On Wed, Mar 12, 2003 at 04:22:38PM -0500, Mico Siahaan wrote:
Well, it's a sys admin newbie question ;)
I have just been handed over a server with some sites in it (not many :) ). I wonder what is the best way to run multiple sites on one computer?
I heard some ways: multiple zope server running in simultaneously, using virtual monster, using PCGI, using Fast CGI. What are pros and cons for each way? What is the best way to run multiple zope sites in one computer? Are there any reading materials I can read about this matter? (I think the old Zope Administrator Guide is not enough :) )
If you want multiple "virtual" servers with content stored on a single Zope server, then Virtual Host Monster is what you want. Presently I do this with Apache as the front end, using re-write/proxy to talk to a Zope server behind a firewall. If the Zope server is on the same box, PCGI should work too. In Apache, you just map everything from a particular virtual host to the respective path on the Zope server. There are several examples of how to do this, just search on Virtual Host Monster and look for Apache RewriteRule configuration stuff. -- Dave =============================================================== | <- You must be smarter than this stick to ride the Internet -Mike Handler ===============================================================
participants (4)
-
Dave Hall -
Dylan Reinhardt -
Mico Siahaan -
Oliver Marx