Forum Moderators: phranque
If you actually need to run multiple instances on the same physical machine, you can point apache at an alternate configuration file with the '-f' flag. Read the httpd(8) man page, or run '/path/to/httpd -?' for list of all commandline options.
Be aware that if you want to run multiple instance of apache on the same host *and* want all of them to run on port 80 (the default http port), you'll need to have a IP address configured for each instance on the box (and configure each apache instance to Listen [httpd.apache.org] on the proper IP address.
Run one copy of apache, you should be able to do whatever you want that is IP or domain specific through the overall config file.
Apache will run multiple copies of itself automatically, opening more as you get more traffic, and killing off old copies as they fall dormant. There are settings in the config files for this, but it basically happens automatically.
Each individual copy of apache then will know what to do with each domain or IP (based on the request from the client) because of what you've set up in the config file.
In short, one copy of apache should be able to handle different domains on different IP's etc. (web hosting companies with hundreds and thousands of client websites running on one computer only run one copy of apache).
.
I've been advised to recompile Apache 2 in order to run multiple instances and/or move to the 2.6 kernel tree and run "virtual" servers. But I'm not sure which way to go or if there are other alternatives (I'd rather not build another server box :)
Thanks for any suggestions and help!