httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yaakov Chaikin" <yaakov.chai...@gmail.com>
Subject Re: [users@httpd] Configuring multiple instances of apache on the same machine
Date Mon, 23 Jul 2007 01:10:15 GMT
Sorry, and what if I want that second instance to start automatically
at boot up? How do I create a script that could go to the /etc/init.d
directory and be controlled by chkconfig?

Thanks,
Yaakov.

On 7/22/07, Joshua Slive <joshua@slive.ca> wrote:
> 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
>
>

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