I am using a Ruby on Rails application and currently have it configured to run using Apache and a VirtualHost. However, the virtualhost configuration at the moment is only configured to support my domain. I am looking for a way to be able to dynamically add a
ServerAlias so that my application can respond to multiple custom domains. I understand that I can just simply add
ServerAlias to my
VirtualHost configuration, but this requires me to have reload Apache configuration, which negatively affects the site as there is a 5-10 second pause, if not longer sometimes.
Can I just simply maintain a list of domains in a text file and have Apache point all of those to the same directory as the original virtualhost?