Install Nginx 1.7.1 mainline in Ubuntu 14.04

Nginx (prononced as engine x) is a free open-source, high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server written by Igor Sysoev.

Nginx powers several high-visibility sites, such as Netflix, Hulu, Pinterest, CloudFlare, Airbnb,, GitHub, SoundCloud, Zynga, Eventbrite, Zappos, Media Temple, Heroku, RightScale, Engine Yard and MaxCDN

Key Features:

  • Serving static and index files, autoindexing; open file descriptor cache;
  • Accelerated reverse proxying with caching; simple load balancing and fault tolerance;
  • Accelerated support with caching of FastCGI, uwsgi, SCGI, and memcached servers; simple load balancing and fault tolerance;
  • Modular architecture. Filters include gzipping, byte ranges, chunked responses, XSLT, SSI, and image transformation filter. Multiple SSI inclusions within a single page can be processed in parallel if they are handled by proxied or FastCGI/uwsgi/SCGI servers;
  • SSL and TLS SNI support.
  • Name-based and IP-based virtual servers;
  • Keep-alive and pipelined connections support;
  • Flexible configuration;
  • Reconfiguration and upgrade of an executable without interruption of the client servicing;
  • Access log formats, buffered log writing, and fast log rotation;
  • 3xx-5xx error codes redirection;
  • The rewrite module: URI changing using regular expressions;
  • Executing different functions depending on the client address;
  • Access control based on client IP address, by password (HTTP Basic authentication) and by the result of subrequest;
  • Validation of HTTP referer;
  • The PUT, DELETE, MKCOL, COPY, and MOVE methods;
  • FLV and MP4 streaming;
  • Response rate limiting;
  • Limiting the number of simultaneous connections or requests coming from one address;
  • Embedded Perl.
  • User redirection to IMAP or POP3 server using an external HTTP authentication server;
  • User authentication using an external HTTP authentication server and connection redirection to an internal SMTP server;
  • Authentication methods:
  • SSL support;
  • STARTTLS and STLS support.

[button link=”” style=”info” color=”primary”]Changes in Nginx 1.7.1[/button]

Install Nginx 1.7.1

Option 1: Via PPA

– Currently, the development PPA still has v1.7.0 available but it should host v1.7.1 soon.

sudo apt-add-repository ppa:nginx/development

sudo apt-get update

sudo apt-get install nginx

Option 2: Build from source


tar -xvf nginx-1.7.1.tar.gz

cd nginx-1.7.1



sudo make install
comments powered by Disqus