RE: [users@httpd] Multiple apache instances

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

 



I have made a modification to apachectl shipped with 2.0 that creates the path to the configuration file dynamically based on the location of apachectl. Then I make symbolic links to apachectl from the bin directory of each instance. That bin directory contains only the symbolic link and an envvars file specific to that instance so I can set environment parameters per-instance.

I also made some other changes that may not be to everybody's liking. 

If anyone is interested, I'll be happy to mail it.

-ascs

-----Original Message-----
From: Joshua Slive [mailto:jslive@xxxxxxxxx] 
Sent: Tuesday, August 16, 2005 5:13 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] Multiple apache instances

On 8/16/05, Spike Burkhardt <burkhardt.richard@xxxxxxxxxxxxx> wrote:
> Joshua & all,
> 
>   When I specified the configuration file the instance I wanted to 
> kill still didn't stop.  In fact, it stopped the other instance!  
> Also, at least on my box, '-k' isn't a valid option.

I didn't notice you were using such an old version.  The command I quoted works in 2.x.

For your version, you need to use the other technique I mentioned (killing the process listed in the pid file).  If you open up apachectl in an editor, you'll note that this is exactly what it is doing.  But it has a hard-coded path to the config file for your first server.  You could easily edit apachectl to make a "stop2" option which would get the pid from the appropriate file for the second server.

This is, by the way, documented at
http://httpd.apache.org/docs/1.3/stopping.html

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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



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