Nginx

From Organic Design wiki

NGiNX by all accounts is much more efficient than Apache, so we will probably start changing the OD server, and our server installation procedure over to NGiNX.

Installation

<bash>echo "deb http://packages.dotdeb.org stable all" >> /etc/apt/sources.list

wget http://www.dotdeb.org/dotdeb.gpg cat dotdeb.gpg

SSL

First Generate a self signed certificate, then update the relevant server section in the nginx configuration,

listen 80;
listen 443 default ssl;

ssl_certificate /etc/nginx/certs/ssl.crt;
ssl_certificate_key /etc/nginx/certs/ssl.key;

See also