Установка

Если есть желание использовать более свежую версию nginx, то добавляем репозиторий разработчика.

Загружаем PGP-ключ с сайта nginx:

wget http://nginx.org/keys/nginx_signing.key

Добавляем ключ в связку ключей apt:

sudo apt-key add nginx_signing.key

Также добавляем строку в конец файла /etc/apt/sources.list:

deb http://nginx.org/packages/ubuntu/ precise nginx #репозиторий для ubuntu 12.04

Далее выполняем команды:

sudo apt-get update
sudo apt-get install nginx

Виды пакетов

Nginx в репозитории Ubuntu представлен тремя пакетами, отличающихся набором функциональности. Ниже представлен набор функциональности каждого пакета на момент ubuntu 16.10, отличия от предыдущего пакета подчеркнуты.


nginx-light - nginx web/proxy server (basic version).

This package provides a very light version of nginx with only the minimal set of features and modules.

STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Empty GIF, FastCGI, Map, Proxy, Rewrite.

OPTIONAL HTTP MODULES: Auth Request, Charset, Gzip, Gzip Precompression, Headers, Index, Log, Real IP, SSL, Stub Status, Upstream.

THIRD PARTY MODULES: Echo.


nginx-full - nginx web/proxy server (standard version).

This package provides a version of nginx with the complete set of standard modules included (but omitting some of those included in nginx-extra).

STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Browser, Empty GIF, FastCGI, Geo, Limit Connections, Limit Requests, Map, Memcached, Proxy, Referer, Rewrite, SCGI, Split Clients, UWSGI.

OPTIONAL HTTP MODULES: Addition, Auth Request, Charset, WebDAV, GeoIP, Gunzip, Gzip, Gzip Precompression, Headers, HTTP/2, Image Filter, Index, Log, Real IP, SSI, SSL, Stream, Stub Status, Substitution, Thread Pool, Upstream, User ID, XSLT.

MAIL MODULES: Mail Core, Auth HTTP, Proxy, SSL, IMAP, POP3, SMTP.

THIRD PARTY MODULES: Auth PAM, DAV Ext, Echo, HTTP Substitutions, Upstream Fair Queue.


nginx-extras - nginx web/proxy server (extended version)

This package provides a version of nginx with the standard modules, plus extra features and modules such as the Perl module, which allows the addition of Perl in configuration files.

STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Browser, Empty GIF, FastCGI, Geo, Limit Connections, Limit Requests, Map, Memcached, Proxy, Referer, Rewrite, SCGI, Split Clients, UWSGI.

OPTIONAL HTTP MODULES: Addition, Auth Request, Charset, WebDAV, FLV, GeoIP, Gunzip, Gzip, Gzip Precompression, Headers, HTTP/2, Image Filter, Index, Log, MP4, Embedded Perl, Random Index, Real IP, Secure Link, SSI, SSL, Stream, Stub Status, Substitution, Thread Pool, Upstream, User ID, XSLT.

MAIL MODULES: Mail Core, Auth HTTP, Proxy, SSL, IMAP, POP3, SMTP.

THIRD PARTY MODULES: Auth PAM, Cache Purge, DAV Ext, Echo, Fancy Index, Headers More, Embedded Lua, HTTP Push, HTTP Substitutions, Upload Progress, Upstream Fair Queue.


Смотрите также

Ссылки