Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

here is some background information, I'm writing a Apache/Tomcat cluster installer basically it is a script that can be called with a domain name and a base port e.g. 10010 this scipt generates 2 tomcat and 2 apache instances with a lb in front and all the backend connections are automaticly configured, the apache--- >tomcat connection is made trough mod_proxy_ajp and a balancer.

The Problem is apache, I have compiled apache from source so that it can be used as a template for all other instances, the bad thing is the --prefix so that the executables refer to the "template" config files.

Is there a way to compile apache as a "template" with a relative path or someting like that ?

share|improve this question
up vote 2 down vote accepted

Do you really need to fiddle with prefix? If you need two (or more) apaches with different configurations, you can just point apache to different config files and server roots using command-line options:

-d directory       : specify an alternate initial ServerRoot
-f file            : specify an alternate ServerConfigFile
share|improve this answer
Ahh of course sorry for that question and thank for pointing me to the right direction. – Izac Dec 18 '11 at 17:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.