FAQ

Page Discussion Edit History

ModulesJa

インストール | モジュール | アドオン | 設定 | コミュニティ | その他の情報源

このセクションはNginxの機能と設定についての高度なリファレンスです。こちらもご覧ください。:

Contents

[edit] Nginxコアモジュール

これらのモジュールは必須です。

モジュール名 説明
Main エラーログ設定、プロセス関連の設定、パーミッション関連の設定など
Events epoll, kqueue, select, poll の設定など

[edit] 標準のHTTPモジュール

これらのモジュールは configure で明示的に無効にされない限り、自動的にコンパイルされます。

Name 説明 バージョン configure argument to disable
Core Control ports, locations, error pages, aliases, and other essentials. --without-http
Access IPアドレスに基づいたアクセス制御 --without-http_access_module
Auth Basic HTTP基本認証 --without-http_auth_basic_module
Auto Index ディレクトリ内のファイル表示の生成 --without-http_autoindex_module
Browser Interpret "User-Agent" string. 0.4.3 --without-http_browser_module
Charset Recode web pages. --without-http_charset_module
Empty GIF 1x1 ピクセルのイメージをメモリ上で提供する 0.3.10 --without-http_empty_gif_module
FastCGI FastCGI のサポート --without-http_fastcgi_module
Geo Set config variables using key/value pairs of IP addresses. 0.1.17 --without-http_geo_module
Gzip レスポンスを gzip 圧縮する --without-http_gzip_module
Headers 任意の HTTP レスポンスヘッダを設定する
Index Controls which files are to be used as index.
Limit Requests クライアントからのコネクションの頻度を制限する 0.7.20 --without-http_limit_req_module
Limit Zone Limit simultaneous connections from a client. Deprecated in 1.1.8, use Limit Conn Instead. 0.5.6 --without-http_limit_zone_module
Limit Conn 変数に基づき、同時接続可能なコネクション数を制限します --without-http_limit_conn_module
Log アクセスログのカスタマイズを行います
Map Set config variables using arbitrary key/value pairs. 0.3.16 --without-http_map_module
Memcached Memcached support. --without-http_memcached_module
Proxy 上位サーバに対するプロキシを行う --without-http_proxy_module
Referer Filter requests based on Referer header. --without-http_referer_module
Rewrite 正規表現を用いたリクエストの rewrite を実現する --without-http_rewrite_module
SCGI SCGI protocol support. 0.8.42 --without-http_scgi_module
Split Clients Splits clients based on some conditions 0.8.37 --without-http_split_clients_module
SSI Server-side includes. --without-http_ssi_module
Upstream ロードバランサ機能 --without-http_upstream_ip_hash_module (ip_hash directive only)
User ID Issue identifying cookies. --without-http_userid_module
uWSGI uWSGI プロトコルのサポート 0.8.40 --without-http_uwsgi_module
X-Accel X-Sendfile-like module.

[edit] オプションのHTTPモジュール

これらのモジュールは configure にオプションを指定することで、コンパイル時に有効にする必要があります。

Name Description Version 有効にするための configure 引数
Addition テキストをページに追加する --with-http_addition_module
Degradation Allow to return 204 or 444 code for some locations on low memory condition. 0.8.25 --with-http_degradation_module
Embedded Perl Use Perl in Nginx config files. 0.3.21 --with-http_perl_module
FLV Flash Streaming Video 0.4.7 --with-http_flv_module
GeoIP Creates variables with information from the MaxMind GeoIP binary files. 0.8.6, 0.7.63 --with-http_geoip_module
Google Perftools Google Performance Tools support. 0.6.29 --with-google_perftools_module
Gzip Precompression Serves precompressed versions of static files. 0.6.23 --with-http_gzip_static_module
Image Filter libgd を用いてイメージを変換する 0.7.54 --with-http_image_filter_module
MP4 Enables mp4 streaming with seeking ability. 1.1.3, 1.0.7 --with-http_mp4_module
Random Index Randomize directory indexes. 0.7.15 --with-http_random_index_module
Real IP For using nginx as backend 0.3.8 --with-http_realip_module
Secure Link ページを秘密キーで保護する 0.7.18 --with-http_secure_link_module
SSL HTTPS/SSL のサポート --with-http_ssl_module
Stub Status View server statistics. 0.1.18 --with-http_stub_status_module
Substitution Replace text in pages --with-http_sub_module
WebDAV WebDAV pass-through support. 0.3.38 --with-http_dav_module
XSLT XLST を用いてページを後処理する 0.7.8 --with-http_xslt_module

[edit] サードパーティのHTTPモジュール

これらのモジュールはNginxのソースには含まれていません。

モジュールの名称 作者 ダウンロード
Nginx Cache Module shineyear,simon,genxi ncache-2.1-tar.gz
Access Key Module Mykola Grechukh nginx-accesskey-2.0.3.tar.gz
Circle GIF Module Evan Miller nginx_circle_gif-0.1.3.tar.gz
Fair Proxy Balancer Grzegorz Nosek [1]
Fancy Indexes Module - Like the built-in autoindex, but fancier Adrian Perez de Castro nginx-fancyindex-0.1_beta5.tar.bz2
GeoIP Module - Country code lookups via the MaxMind GeoIP API SPIL GAMES nginx-geoip-0.1.tar.gz
MP4 Streaming Lite Module Jiang Hong nginx_mp4_streaming_lite.tar.bz2
Notice Module - serve static file to POST requests Keith Rarick nginx-notice-2.tar.gz
RRD Graph Module - graph data in Round-Robin databases Evan Miller ngx_rrd_graph-0.1.tar.gz
SCGI Module - SCGI implementation for Nginx Manlio Perillo [2]
Strip Module - whitespace remover Evan Miller mod_strip-0.1.tar.gz
Upload Module - parse multipart/form-data Valery Kholodkov nginx_upload_module-2.0.4.tar.gz
Upload Progress Module - Tracks and reports upload progress Brice Figureau nginx_uploadprogress_module-0.5.tar.gz
Upstream Hash Module Evan Miller nginx_upstream_hash-0.3.tar.gz (module + patch)
WSGI Module - WSGI implementation for Nginx Manlio Perillo [3]
ZIP module - assemble ZIP archives on the fly Evan Miller mod_zip-1.1.3.tar.gz
PAM Module - HTTP Basic Authentication against PAM Sergio Talens-Oliag ngx_http_auth_pam_module-1.1.tar.gz

[edit] サードパーティのNginxパッチ

これらのパッチはNginxのソースには含まれていません。

パッチの名称 作者 ダウンロード
Set Real IP header to any variable Joaquin Cuenca Abela realip.patch
Redirect to static file based on its freshness DeepFryed redirect_modified.patch , readme.txt
Log to syslog Marlon de Boer syslog.patch

[edit] 開発者向けリソース

  1. Guide to Nginx Module Development
  2. Nginx source code cross-reference

[edit] メールモジュール

Name Description configure argument
Core Nginx is able to handle and proxy the IMAP, POP3, SMTP protocols. --with-mail
--without-mail_pop3_module
--without-mail_imap_module
--without-mail_smtp_module
Auth Use Nginx to authenticate mail services.
Proxy Nginx は IMAP, POP3, SMTP プロトコルのプロキシを行うことが可能です。
SSL POP3/IMAP/SMTP の SSL/TLS サポートを有効にします。 --with-mail_ssl_module