Re: Multiple Instances of Apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:
On Jan 18, 2008 3:22 PM, Mandy Singh <mandys@xxxxxxxxx> 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@xxxxxxxxx
krist@xxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux