I have a complex web application that contains a lot of dynamic Aliases. I created a shellscript that updates the .conf file(s) with these aliases. Is it possible to call this shellscript from within the Apache conf? So something like:
RunScript /etc/myapp/updateconf.sh Include /etc/myapp/*.conf
Or alternatively, is there a good way to add this script as a hook to the /etc/init.d/apache2 or /etc/init.d/httpd script? I am looking for a solution that works on both CentOS and Ubuntu. If I am totally approaching this the wrong way, any other suggestions are welcome as well.