Is there a way to disable generation of apache host configuration file on each Verify task?

In my case, I am adding some settings host conf file for managing logs (to be parsed by awstats), but my customized conf file is being deleted and replaced with default host conf file.

Is there some configuration for this, or this should be marked as feature request? :)

Comments

adrian’s picture

Status: Active » Closed (works as designed)

This is by design. it needs to generate the config files depending on the settings from the front end.

you can modify the template file if you need to add things, or you can add a small .drush.inc file which implements hook_provision_apache_vhost_config($url, $options)

steveparks’s picture

Mihha,

You can also create a separate apache config file - say 'example.com-awstats' in the /var/aegir/config/vhosts.d directory - because the include with apache is set to include everything in this directory

So as long as you don't simply call it 'example.com' it won't be overwritten.

cheers
Steve