1

I am getting ready to do a "spring cleaning" on the web heads at work. I would really like to put my config files into a git repo, and use the same config files for all the web heads. This is a problem for the sites that are on port 443.

Is there anyway to do an if statement or something like that inside the conf file itself? I am trying to avoid writing a script to generate the conf files.

Any ideas are greatly appreciated!!

Thank you!

Jeff

1 Answer 1

0

IfDefine - Encloses directives that will be processed only if a test is true at startup.

Adjust your Apache startup script to define any parameters you need with -D option.

1
  • Awesome, Thank you! I just found that for Redhat, you can place variables in /etc/sysconfig/httpd that can be accessed ${VARNAME}
    – jroberts
    Nov 29, 2012 at 23:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .