Nginx is a powerful web server and therefore our choice. Unfortunately, the Gentoo ebuild is missing one essential extension: a load balancer that is querying the servers not via round robin but by their current load. Therefore, we had to extend the default ebuild to support gnosek’s upstream_fair module.
How to use this ebuild:
- download the ebuild (currently, we only have one for nginx 1.1.12)
- place it anywhere portage has access to (i.e. rough: /usr/portage/www-servers/nginx/)
- run ebuild nginx-1.1.12-r2.ebuild digest
- add upstream_fair to NGINX_MODULES_HTTP in /etc/make.conf
- add your keywords to /etc/portage/package.keywords
- emerge nginx
- done.