Nginx is a high performance web server and proxy, which is used by many big sites. If you need Nginx, you either have a high performance site, or you like the asynchronous event driven approach of it, which ensures a consistent usage of memory almost regardless of the connection amount. Nginx comes with a ton of features, but most likely, only the proxying and SSL features are needed in this recipe.
The source code of the example application is available at examples/chapter7/ssl/example-app
as well as for examples/chapter7/ssl/example-app-2
for the second application instance. The configuration files for the web server are put in examples/chapter7/nginx
.
Nginx should be installed, and up and running. Execute apt-get install nginx
on any Debian derived distribution.