Skip to content

Instantly share code, notes, and snippets.

@cdracars
Created October 17, 2014 20:29
Show Gist options
  • Save cdracars/90596daa0c6066756b2b to your computer and use it in GitHub Desktop.
Save cdracars/90596daa0c6066756b2b to your computer and use it in GitHub Desktop.
php5-fpm rules for Aegir
<?php
/*
* Implementation of hook_provision_apache_vhost_config()
*/
function php5fpm_provision_apache_vhost_config($uri, $data) {
$plat = d()->root;
return "ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000" . $plat . "/$1";
}
?>
@cdracars
Copy link
Author

Place in a file called php5fpm.drush.inc located in /var/aegir/.drush/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment