Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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. www.example.com 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

1 Answer 1

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

 
discard

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.