Does Aegir Hosting System work with Nginx? The shortest answer is: YES.

But, you need a few important ingredients to enjoy your Aegir Hosting System with Nginx as a webserver:

  • Latest 0.8.x Nginx installed.
  • Nginx catch-all configuration with Boost integration (in case Varnish is too powerful for you)
  • Simple patch for provision_apache.drush.inc – see http://omega8.cc/dev/provision.patch
  • Easy to understand and use Aegir directories tree.

If you prefer standard locations explained in Aegir Documentation then just change them also in the above patch and in the attached below Nginx configuration.

Here it is – sample Nginx configuration to run Aegir Hosting System without the need to restart/reload your fast, small and powerful webserver (please remember to use /bin/true for Apache restart command during Aegir installation).

Please note that I only added some required details for Aegir setup and credit for this Nginx example configuration goes to @brianmercer. See also where it all started.

In below example Nginx is listening on port 88 since port 80 is used by Pound/Nginx load balancer or Varnish/Ncache fast proxy.

http://omega8.cc/dev/nginx.conf.txt

And /usr/local/etc/fastcgi.conf looks similar to:

http://omega8.cc/dev/fastcgi_param.txt


Trademarks and Technology