Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 254 invoked from network); 18 Jan 2008 16:37:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2008 16:37:40 -0000 Received: (qmail 83781 invoked by uid 500); 18 Jan 2008 16:37:19 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 83765 invoked by uid 500); 18 Jan 2008 16:37:19 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 83747 invoked by uid 99); 18 Jan 2008 16:37:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2008 08:37:19 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mandys@gmail.com designates 66.249.92.173 as permitted sender) Received: from [66.249.92.173] (HELO ug-out-1314.google.com) (66.249.92.173) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2008 16:36:51 +0000 Received: by ug-out-1314.google.com with SMTP id c2so496538ugf.27 for ; Fri, 18 Jan 2008 08:36:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=o3LsQFmWaE+u3r+Z5tY42HlxrwCzA+3pd6Tlcvyj4j4=; b=AoVLD3OPnpFG27BY85j6z+dIDf8jkQfCECzHZks11fJmHZpQoTfWOGUSi36kh/9fs/b4+odeqSIh5W/jRtck2x9OtpwwbV2jXBDud+gtqYfILCnPgujN3UHPpgbrY9NX+/IjyalEAlmMTc6Y8ezcSrm2HGvgz4tM6/55xFwHpqI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=ZGbQxMaWetRdDz/FdzNepb/USqvjnc6rw3stM9x2So4w1GzGPfwmsko7EPYKS2ZL9n8h05p6pENGw0Hr1Ko9gHrD4o17RGQ29ie1FsbUl9at8FFMuZGx8894mRXRxv5F3YfNXGiUp/o09sHAGrfkgMPbPmGOKKv5BiN2sQwsiEY= Received: by 10.67.30.3 with SMTP id h3mr1251206ugj.35.1200674215993; Fri, 18 Jan 2008 08:36:55 -0800 (PST) Received: by 10.67.86.6 with HTTP; Fri, 18 Jan 2008 08:36:55 -0800 (PST) Message-ID: <8ea40bd50801180836t1ff2bdb4o7e5a1570fb6b99fe@mail.gmail.com> Date: Fri, 18 Jan 2008 22:06:55 +0530 From: "Mandy Singh" To: users@httpd.apache.org In-Reply-To: <6ed6382b0801180648u7c830790t26e66f8b88464934@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_4993_838707.1200674215986" References: <8ea40bd50801180622l5eb7c1f2tbe1c747a480641b3@mail.gmail.com> <6ed6382b0801180648u7c830790t26e66f8b88464934@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Multiple Instances of Apache ------=_Part_4993_838707.1200674215986 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you Kris for a quick reply. However, if my other apache's are dependant on a master apache (which has it's own app running) and was the cause of failure at time because of which I want other instances, then I am still dependant on the master (troublesome) one - right? Also, if master was http://mysite.com and second was http://mysecondsite.com:8080 How can I still access second one as http://mysecondsite.com/ - this can be configured in apache (to skip the port)? Or will this be done at DNS level? Or can this be done at all? Thanks, Mandy. On Jan 18, 2008 8:18 PM, Krist van Besien wrote: > On Jan 18, 2008 3:22 PM, Mandy Singh wrote: > > Hi Everyone, > > > > I would like to know the experts thoughts on having multiple instances > of > > apache on the same box. > > > > Suppose I run an app off an instance of apache, then using VHosts add > 2-3 > > diff mini sites to it. > > > > If due to some reason one of the app causes apache to get hung, all my > apps > > become inaccessible. > > > > In such a scenario, since app 3 is extremely important is it adivisable > to > > have another instance of apache running off the same box and serving > app3 so > > that is away from my main app (that sometimes causes problems)? > > You can have multiple apaches on one box. They will all have to be > bound to a different port however. > What you could do is have for example a main apache on port 80, and > three separate apaches for each app on eg. ports 8080, 8081, and 8082. > In you main apache you then proxy requests for the three different > apps to the correct server. > This gives you a couple of things: > - Each app runs in its own space. > - Each app can run under a different user. > - With port nrs > 1024 a non root user can start - stop the server. > > Krist > > -- > krist.vanbesien@gmail.com > krist@vanbesien.org > Bremgarten b. Bern, Switzerland > -- > A: It reverses the normal flow of conversation. > Q: What's wrong with top-posting? > A: Top-posting. > Q: What's the biggest scourge on plain text email discussions? > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > > ------=_Part_4993_838707.1200674215986 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you Kris for a quick reply.

However, if my other apache's are dependant on a master apache (which has it's own app running) and was the cause of failure at time because of which I want other instances, then I am still dependant on the master (troublesome) one - right?

Also, if master was http://mysite.com

and second was http://mysecondsite.com:8080

How can I still access second one as http://mysecondsite.com/ - this can be configured in apache (to skip the port)?

Or will this be done at DNS level?

Or can this be done at all?

Thanks,
Mandy.

On Jan 18, 2008 8:18 PM, Krist van Besien < krist.vanbesien@gmail.com> wrote:
On Jan 18, 2008 3:22 PM, Mandy Singh <mandys@gmail.com> wrote:
> Hi Everyone,
>
> I would like to know the experts thoughts on having multiple instances of
> apache on the same box.
>
> Suppose I run an app off an instance of apache, then using VHosts add 2-3
> diff mini sites to it.
>
> If due to some reason one of the app causes apache to get hung, all my apps
> become inaccessible.
>
> In such a scenario, since app 3 is extremely important is it adivisable to
> have another instance of apache running off the same box and serving app3 so
> that is away from my main app (that sometimes causes problems)?

You can have multiple apaches on one box. They will all have to be
bound to a different port however.
What you could do is have for example a main apache on port 80, and
three separate apaches for each app on eg. ports 8080, 8081, and 8082.
In you main apache you then proxy requests for the three different
apps to the correct server.
This gives you a couple of things:
- Each app runs in its own space.
- Each app can run under a different user.
- With port nrs > 1024 a non root user can start - stop the server.

Krist

--
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL: http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
  "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


------=_Part_4993_838707.1200674215986--