httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Configuring multiple instances of apache on the same machine
Date Sun, 22 Jul 2007 23:20:58 GMT
On 7/22/07, Yaakov Chaikin <yaakov.chaikin@gmail.com> wrote:

> > If you want to share an httpd binary or do other tricky stuff like
> > that, then you have to be careful that the different instances don't
> > share some crucial files like LockFile.
>
> Do you have instructions on how to get this setup accomplished? Can
> someone provide those or provide a URL that would explain this?

I don't think explicit instructions exist, since there is no single
way to do this.

In reality, it shouldn't be too complicated. You'll probably be safe
if you just make sure that anything in the logs/ directory is given a
different location/filename for each instance. (In fact, most
important stuff, including my LockFile example above, automatically
append the process-id to the filename, so they are safe with multiple
instances pointing in the same place.)

To be specific, you could probably get away with copying the default
httpd.conf to a new one for each instance, then changing ErrorLog,
CustomLog, and PIDFile in each httpd.conf to point to a different
location and then starting apache with apachectl -f
/path/to/httpd.conf for each config file.

Joshua.

---------------------------------------------------------------------
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


Mime
View raw message