Re: Server replication

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

 



A configuration management tool (like Puppet, for example) may be a better fit for what you are looking for. 
I have implemented this solution at a state university - email me off the list if you want specifics.

That said, can you be more specific about what you are trying to do?
Are you trying to include a different file depending on the hostname of the machine?
Can you always have that config file named local.conf (or similar) and include it everywhere else?
Alternatively, you might be able to pass the name you want on the startup command (-D) and use it in the config - http://httpd.apache.org/docs/2.4/mod/core.html#define.

- Y

On Sun, Apr 17, 2016 at 3:09 PM, Darryl Philip Baker <darryl.baker@xxxxxxxxxxxxxxxx> wrote:

I the system administrator for HTTP servers in a higher volume environment. We have three Linux hosts serving the many virtual hosts that make up our sites. The only HTTPD configuration difference between the three servers is the local machine's host name and IP address. I would like to have the HTTPD configuration be identical except for one file with the local settings, then I can just include that file. I would like to avoid having a large "<ifdefine></ifdefine>" block if possible. I'm sure other people are in the same situation and I would like to find out what works for you.


When I search for answers I get answers to running multiple sites on a host and multiple instances of Apache HTTPD on a single host, neither of theses are my problem obviously. 


Darryl Baker
Sr. System Administrator
Distributed Application Platform Services (DAPS)
Project Management Office and Enabling Technologies (PMOET)
Northwestern | Information Technology (Formerly NUIT)
1800 Sherman Ave., Suite 600
Evanston, IL  60201-3715


[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