Apache Conf files: If Hostname=="Web4" Then Use This IP for VirtualHost

Posted by jroberts on Server Fault See other posts from Server Fault or by jroberts
Published on 2012-11-29T23:05:31Z Indexed on 2012/11/29 23:07 UTC
Read the original article Hit count: 153

Filed under:

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

© Server Fault or respective owner

Related posts about apache2