- π¦πΊAustralia ac Perth
You can do this manually by creating a file in /var/aegir/.drush/
This example is for apache but you can use drush_hook_provision_nginx_vhost_config for nginx.
<?php function foo_provision_apache_vhost_config($uri, $data) { $sites = [ 'www.site1.com', 'www.site2.com', ]; if (in_array($uri, $sites)) { return array(" Include /etc/apache2/conf-available/php7.2-fpm.conf "); } else { return array(" Include /etc/apache2/conf-available/php7.4-fpm.conf "); } }
- πΊπΈUnited States SocialNicheGuru
@ac, nginx does not use .conf files like this. There is not an equivalent for php7.4-fpm.conf.
- πΊπΈUnited States SocialNicheGuru
I upgraded hostmaster to Drupal 7.100 which takes php8.1 and possibly 8.2
I upgraded the file, /var/aegir/config/includes/nginx_vhost_common.conf, to reflect this