Multiple instances of Apache

We have to default setup. I would like to know if it is possible to run another instanace of Apache (on another port on the same system). Can this be monitored with Server Admin ?

Xserve, iMac G5, Power Mac G4, PowerBook G4, MacBook Pro, Mac OS X (10.4.6)

Posted on Apr 25, 2006 10:47 AM

Reply
2 replies

Apr 25, 2006 12:34 PM in response to Chakravarthy Cuddapah

You want a whole different instance of Apache? or you want apache to listen on multiple ports?

Both can be achieved, but there's usually little value in running a second instance unless you want to run two different versions for some reason (e.g. apache 1.3 and 2.1).

On the other hand, a single apache server can listen on multiple ports and serve different content depending on the port number the connection comes in on. This is a common way of implementing virtual hosts and has the advantage that all the common code can be shared, reducing the memory and CPU overhead.

If you do want to run two copies, you can do - you'll have to download the apache source and build a custom version that uses a different configuration file and directory layout. You'll also need to write your own startup script, and Server Admin won't have any visibility or knowledge about the second instance. In other words, you're on your own 🙂

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Multiple instances of Apache

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.