Conditional Logic for Injecting Apache Conf Rules
I am trying to inject additional apache conf files so specific hosts, and I am using this code in a file called wwwlegacy.drush.inc in /var/aegir/.drush:
<? function wwwlegacy_provision_apache_vhost_config($uri, $data) { if ($uri == "cms.test.domain.com") { return array("Include conf.d/www-legacy-redirect.conf","Include conf.d/www-legacy-proxy.conf"); } } ?>but this does not inject the two lines into the vhost entry of cms.test.domain.com after I verify the site. When I remove the if
statement, it works, but I don't want it going to all the sites.
Looks like I am missing something very basic ... ?
Thanks!
No recent comments found.