NGINX アドバンスモードで利用できるディレクティブ一覧

このページでは Gehirn RS2 Plus サイトの NGINX バックエンドアドバンスモードでご利用になれる NGINX ディレクティブの一覧を提供いたします。

なお、ゲヒルンでは NGINX ディレクティブの利用方法に関するご質問や設定の支援のご依頼は承っておりません。お客さまの設定に起因する NGINX の動作やセキュリティ上の問題についてもゲヒルンでは責任を負いかねます。

NGINX アドバンスモードはお客さまの責任においてご利用ください。

NGINX ディレクティブ一覧(辞書順) 

ディレクティブ モジュール コンテキスト 補足
access_log ngx_http_log_module
  • server
  • location
  • if in location
  • limit_except
/var/log/sites/ホスト名/access.nginx.log のみ
add_after_body ngx_http_addition_module
  • server
  • location
add_before_body ngx_http_addition_module
  • server
  • location
add_header ngx_http_headers_module
  • server
  • location
  • if in location
add_trailer ngx_http_headers_module
  • server
  • location
  • if in location
addition_types ngx_http_addition_module
  • server
  • location
alias ngx_http_core_module
  • location
root をご参照ください
allow ngx_http_access_module
  • server
  • location
  • limit_except
ancient_browser ngx_http_browser_module
  • server
  • location
ancient_browser_value ngx_http_browser_module
  • server
  • location
auth_basic ngx_http_auth_basic_module
  • server
  • location
  • limit_except
auth_basic_user_file ngx_http_auth_basic_module
  • server
  • location
  • limit_except
auth_delay ngx_http_core_module
  • server
  • location
auth_request ngx_http_auth_request_module
  • server
  • location
auth_request_set ngx_http_auth_request_module
  • server
  • location
autoindex ngx_http_autoindex_module
  • server
  • location
autoindex_exact_size ngx_http_autoindex_module
  • server
  • location
autoindex_format ngx_http_autoindex_module
  • server
  • location
autoindex_localtime ngx_http_autoindex_module
  • server
  • location
break ngx_http_rewrite_module
  • server
  • location
  • if
charset ngx_http_charset_module
  • server
  • location
  • if in location
charset_types ngx_http_charset_module
  • server
  • location
chunked_transfer_encoding ngx_http_core_module
  • server
  • location
client_max_body_size ngx_http_core_module
  • server
  • location
default_type ngx_http_core_module
  • server
  • location
deny ngx_http_access_module
  • server
  • location
  • limit_except
empty_gif ngx_http_empty_gif_module
  • location
error_log ngx_core_module
  • server
  • location
/var/log/sites/ホスト名/error.nginx.log のみ
error_page ngx_http_core_module
  • server
  • location
  • if in location
etag ngx_http_core_module
  • server
  • location
expires ngx_http_headers_module
  • server
  • location
  • if in location
fastcgi_buffer_size ngx_http_fastcgi_module
  • server
  • location
fastcgi_buffering ngx_http_fastcgi_module
  • server
  • location
fastcgi_buffers ngx_http_fastcgi_module
  • server
  • location
fastcgi_busy_buffers_size ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_background_update ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_bypass ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_key ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_lock ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_lock_age ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_lock_timeout ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_max_range_offset ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_methods ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_min_uses ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_path ngx_http_fastcgi_module
  • http
fastcgi_cache_revalidate ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_use_stale ngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_valid ngx_http_fastcgi_module
  • server
  • location
fastcgi_catch_stderr ngx_http_fastcgi_module
  • server
  • location
fastcgi_connect_timeout ngx_http_fastcgi_module
  • server
  • location
fastcgi_force_ranges ngx_http_fastcgi_module
  • server
  • location
fastcgi_hide_header ngx_http_fastcgi_module
  • server
  • location
fastcgi_ignore_client_abort ngx_http_fastcgi_module
  • server
  • location
fastcgi_ignore_headers ngx_http_fastcgi_module
  • server
  • location
fastcgi_index ngx_http_fastcgi_module
  • server
  • location
fastcgi_intercept_errors ngx_http_fastcgi_module
  • server
  • location
fastcgi_limit_rate ngx_http_fastcgi_module
  • server
  • location
fastcgi_max_temp_file_size ngx_http_fastcgi_module
  • server
  • location
fastcgi_next_upstream ngx_http_fastcgi_module
  • server
  • location
fastcgi_next_upstream_timeout ngx_http_fastcgi_module
  • server
  • location
fastcgi_next_upstream_tries ngx_http_fastcgi_module
  • server
  • location
fastcgi_no_cache ngx_http_fastcgi_module
  • server
  • location
fastcgi_param ngx_http_fastcgi_module
  • server
  • location
fastcgi_pass ngx_http_fastcgi_module
  • location
  • if in location
fastcgi_pass_header ngx_http_fastcgi_module
  • server
  • location
fastcgi_pass_request_body ngx_http_fastcgi_module
  • server
  • location
fastcgi_pass_request_headers ngx_http_fastcgi_module
  • server
  • location
fastcgi_read_timeout ngx_http_fastcgi_module
  • server
  • location
fastcgi_request_buffering ngx_http_fastcgi_module
  • server
  • location
fastcgi_send_timeout ngx_http_fastcgi_module
  • server
  • location
fastcgi_split_path_info ngx_http_fastcgi_module
  • location
fastcgi_store ngx_http_fastcgi_module
  • server
  • location
fastcgi_temp_file_write_size ngx_http_fastcgi_module
  • server
  • location
fastcgi_temp_path ngx_http_fastcgi_module
  • server
  • location
geo ngx_http_geo_module
  • http
以下のディレクティブ以外をご利用になれます。
  • include
  • proxy
  • proxy_recursive
hash ngx_http_upstream_module
  • upstream
if ngx_http_rewrite_module
  • server
  • location
if_modified_since ngx_http_core_module
  • server
  • location
image_filter ngx_http_image_filter_module
  • location
image_filter_buffer ngx_http_image_filter_module
  • server
  • location
image_filter_interlace ngx_http_image_filter_module
  • server
  • location
image_filter_jpeg_quality ngx_http_image_filter_module
  • server
  • location
image_filter_sharpen ngx_http_image_filter_module
  • server
  • location
image_filter_transparency ngx_http_image_filter_module
  • server
  • location
image_filter_webp_quality ngx_http_image_filter_module
  • server
  • location
include ngx_core_module
  • http 以外
以下のファイルのみ
  • fastcgi_params
  • fastcgi.conf
  • proxy_params
  • scgi_params
  • uwsgi_params
index ngx_http_index_module
  • server
  • location
internal ngx_http_core_module
  • location
ip_hash ngx_http_upstream_module
  • upstream
keepalive ngx_http_upstream_module
  • upstream
keepalive_requests ngx_http_upstream_module
  • upstream
keepalive_time ngx_http_upstream_module
  • upstream
keepalive_timeout ngx_http_upstream_module
  • upstream
least_conn ngx_http_upstream_module
  • upstream
limit_conn ngx_http_limit_conn_module
  • server
  • location
limit_conn_dry_run ngx_http_limit_conn_module
  • server
  • location
limit_conn_log_level ngx_http_limit_conn_module
  • server
  • location
limit_conn_status ngx_http_limit_conn_module
  • server
  • location
limit_conn_zone ngx_http_limit_conn_module
  • http
limit_except ngx_http_core_module
  • location
limit_req ngx_http_limit_req_module
  • server
  • location
limit_req_dry_run ngx_http_limit_req_module
  • server
  • location
limit_req_log_level ngx_http_limit_req_module
  • server
  • location
limit_req_status ngx_http_limit_req_module
  • server
  • location
limit_req_zone ngx_http_limit_req_module
  • http
listen ngx_http_core_module
  • server
listen 80; のみ
location ngx_http_core_module
  • server
  • location
log_not_found ngx_http_core_module
  • server
  • location
log_subrequest ngx_http_core_module
  • server
  • location
map ngx_http_map_module
  • http
include パラメーターはご利用になれません。
max_ranges ngx_http_core_module
  • server
  • location
modern_browser ngx_http_browser_module
  • server
  • location
modern_browser_value ngx_http_browser_module
  • server
  • location
msie_padding ngx_http_core_module
  • server
  • location
msie_refresh ngx_http_core_module
  • server
  • location
override_charset ngx_http_charset_module
  • server
  • location
  • if in location
proxy_buffer_size ngx_http_proxy_module
  • server
  • location
proxy_buffering ngx_http_proxy_module
  • server
  • location
proxy_buffers ngx_http_proxy_module
  • server
  • location
proxy_busy_buffers_size ngx_http_proxy_module
  • server
  • location
proxy_cache ngx_http_proxy_module
  • server
  • location
proxy_cache_background_update ngx_http_proxy_module
  • server
  • location
proxy_cache_bypass ngx_http_proxy_module
  • server
  • location
proxy_cache_convert_head ngx_http_proxy_module
  • server
  • location
proxy_cache_key ngx_http_proxy_module
  • server
  • location
proxy_cache_lock ngx_http_proxy_module
  • server
  • location
proxy_cache_lock_age ngx_http_proxy_module
  • server
  • location
proxy_cache_lock_timeout ngx_http_proxy_module
  • server
  • location
proxy_cache_max_range_offset ngx_http_proxy_module
  • server
  • location
proxy_cache_methods ngx_http_proxy_module
  • server
  • location
proxy_cache_min_uses ngx_http_proxy_module
  • server
  • location
proxy_cache_path ngx_http_proxy_module
  • http
proxy_cache_revalidate ngx_http_proxy_module
  • server
  • location
proxy_cache_use_stale ngx_http_proxy_module
  • server
  • location
proxy_cache_valid ngx_http_proxy_module
  • server
  • location
proxy_connect_timeout ngx_http_proxy_module
  • server
  • location
proxy_force_ranges ngx_http_proxy_module
  • server
  • location
proxy_headers_hash_bucket_size ngx_http_proxy_module
  • server
  • location
proxy_headers_hash_max_size ngx_http_proxy_module
  • server
  • location
proxy_hide_header ngx_http_proxy_module
  • server
  • location
proxy_http_version ngx_http_proxy_module
  • server
  • location
proxy_ignore_headers ngx_http_proxy_module
  • server
  • location
proxy_intercept_errors ngx_http_proxy_module
  • server
  • location
proxy_limit_rate ngx_http_proxy_module
  • server
  • location
proxy_method ngx_http_proxy_module
  • server
  • location
proxy_next_upstream ngx_http_proxy_module
  • server
  • location
proxy_next_upstream_timeout ngx_http_proxy_module
  • server
  • location
proxy_next_upstream_tries ngx_http_proxy_module
  • server
  • location
proxy_no_cache ngx_http_proxy_module
  • server
  • location
proxy_pass ngx_http_proxy_module
  • location
  • if in location
  • limit_except
proxy_pass_header ngx_http_proxy_module
  • server
  • location
proxy_pass_request_body ngx_http_proxy_module
  • server
  • location
proxy_pass_request_headers ngx_http_proxy_module
  • server
  • location
proxy_read_timeout ngx_http_proxy_module
  • server
  • location
proxy_redirect ngx_http_proxy_module
  • server
  • location
proxy_request_buffering ngx_http_proxy_module
  • server
  • location
proxy_send_timeout ngx_http_proxy_module
  • server
  • location
proxy_set_body ngx_http_proxy_module
  • server
  • location
proxy_set_header ngx_http_proxy_module
  • server
  • location
proxy_store ngx_http_proxy_module
  • server
  • location
proxy_temp_file_write_size ngx_http_proxy_module
  • server
  • location
proxy_temp_path ngx_http_proxy_module
  • server
  • location
recursive_error_pages ngx_http_core_module
  • server
  • location
referer_hash_bucket_size ngx_http_referer_module
  • server
  • location
referer_hash_max_size ngx_http_referer_module
  • server
  • location
return ngx_http_rewrite_module
  • server
  • location
  • if
rewrite ngx_http_rewrite_module
  • server
  • location
  • if
rewrite_log ngx_http_rewrite_module
  • server
  • location
  • if
root ngx_http_core_module
  • server
  • location
  • if in location
/var/www 以下のディレクトリ
satisfy ngx_http_core_module
  • server
  • location
scgi_buffer_size ngx_http_scgi_module
  • server
  • location
scgi_buffering ngx_http_scgi_module
  • server
  • location
scgi_buffers ngx_http_scgi_module
  • server
  • location
scgi_busy_buffers_size ngx_http_scgi_module
  • server
  • location
scgi_cache ngx_http_scgi_module
  • server
  • location
scgi_cache_background_update ngx_http_scgi_module
  • server
  • location
scgi_cache_bypass ngx_http_scgi_module
  • server
  • location
scgi_cache_key ngx_http_scgi_module
  • server
  • location
scgi_cache_lock ngx_http_scgi_module
  • server
  • location
scgi_cache_lock_age ngx_http_scgi_module
  • server
  • location
scgi_cache_lock_timeout ngx_http_scgi_module
  • server
  • location
scgi_cache_max_range_offset ngx_http_scgi_module
  • server
  • location
scgi_cache_methods ngx_http_scgi_module
  • server
  • location
scgi_cache_min_uses ngx_http_scgi_module
  • server
  • location
scgi_cache_path ngx_http_scgi_module
  • http
scgi_cache_revalidate ngx_http_scgi_module
  • server
  • location
scgi_cache_use_stale ngx_http_scgi_module
  • server
  • location
scgi_cache_valid ngx_http_scgi_module
  • server
  • location
scgi_connect_timeout ngx_http_scgi_module
  • server
  • location
scgi_force_ranges ngx_http_scgi_module
  • server
  • location
scgi_hide_header ngx_http_scgi_module
  • server
  • location
scgi_ignore_client_abort ngx_http_scgi_module
  • server
  • location
scgi_ignore_headers ngx_http_scgi_module
  • server
  • location
scgi_intercept_errors ngx_http_scgi_module
  • server
  • location
scgi_limit_rate ngx_http_scgi_module
  • server
  • location
scgi_max_temp_file_size ngx_http_scgi_module
  • server
  • location
scgi_next_upstream ngx_http_scgi_module
  • server
  • location
scgi_next_upstream_timeout ngx_http_scgi_module
  • server
  • location
scgi_next_upstream_tries ngx_http_scgi_module
  • server
  • location
scgi_no_cache ngx_http_scgi_module
  • server
  • location
scgi_param ngx_http_scgi_module
  • server
  • location
scgi_pass ngx_http_scgi_module
  • location
  • if in location
scgi_pass_header ngx_http_scgi_module
  • server
  • location
scgi_pass_request_body ngx_http_scgi_module
  • server
  • location
scgi_pass_request_headers ngx_http_scgi_module
  • server
  • location
scgi_read_timeout ngx_http_scgi_module
  • server
  • location
scgi_request_buffering ngx_http_scgi_module
  • server
  • location
scgi_send_timeout ngx_http_scgi_module
  • server
  • location
scgi_store ngx_http_scgi_module
  • server
  • location
scgi_temp_file_write_size ngx_http_scgi_module
  • server
  • location
scgi_temp_path ngx_http_scgi_module
  • server
  • location
server ngx_http_core_module
  • http
1 つのみ記述可能です。また、必ず 1 つの設定が必要です。
server ngx_http_upstream_module
  • upstream
以下のパラメーターはご利用になれません。
  • resolve
  • service
server_name ngx_http_core_module
  • server
Gehirn RS2 Plus サイトのホスト名のみ
set ngx_http_rewrite_module
  • server
  • location
  • if
slice ngx_http_slice_module
  • server
  • location
source_charset ngx_http_charset_module
  • server
  • location
  • if in location
split_clients ngx_http_split_clients_module
  • http
ssi ngx_http_ssi_module
  • server
  • location
  • if in location
ssi_last_modified ngx_http_ssi_module
  • server
  • location
ssi_min_file_chunk ngx_http_ssi_module
  • server
  • location
ssi_silent_errors ngx_http_ssi_module
  • server
  • location
ssi_types ngx_http_ssi_module
  • server
  • location
ssi_value_length ngx_http_ssi_module
  • server
  • location
status ngx_http_status_module
  • location
status_format ngx_http_status_module
  • server
  • location
status_zone ngx_http_status_module
  • server
stub_status ngx_http_stub_status_module
  • server
  • location
sub_filter ngx_http_sub_module
  • server
  • location
sub_filter_last_modified ngx_http_sub_module
  • server
  • location
sub_filter_once ngx_http_sub_module
  • server
  • location
sub_filter_types ngx_http_sub_module
  • server
  • location
try_files ngx_http_core_module
  • server
  • location
types ngx_http_core_module
  • server
  • location
uninitialized_variable_warn ngx_http_rewrite_module
  • server
  • location
  • if
upstream ngx_http_upstream_module
  • http
uwsgi_buffer_size ngx_http_uwsgi_module
  • server
  • location
uwsgi_buffering ngx_http_uwsgi_module
  • server
  • location
uwsgi_buffers ngx_http_uwsgi_module
  • server
  • location
uwsgi_busy_buffers_size ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_background_update ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_bypass ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_key ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_lock ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_lock_age ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_lock_timeout ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_max_range_offset ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_methods ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_min_uses ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_path ngx_http_uwsgi_module
  • http
uwsgi_cache_revalidate ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_use_stale ngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_valid ngx_http_uwsgi_module
  • server
  • location
uwsgi_connect_timeout ngx_http_uwsgi_module
  • server
  • location
uwsgi_force_ranges ngx_http_uwsgi_module
  • server
  • location
uwsgi_hide_header ngx_http_uwsgi_module
  • server
  • location
uwsgi_ignore_headers ngx_http_uwsgi_module
  • server
  • location
uwsgi_intercept_errors ngx_http_uwsgi_module
  • server
  • location
uwsgi_limit_rate ngx_http_uwsgi_module
  • server
  • location
uwsgi_max_temp_file_size ngx_http_uwsgi_module
  • server
  • location
uwsgi_modifier1 ngx_http_uwsgi_module
  • server
  • location
uwsgi_modifier2 ngx_http_uwsgi_module
  • server
  • location
uwsgi_next_upstream ngx_http_uwsgi_module
  • server
  • location
uwsgi_next_upstream_timeout ngx_http_uwsgi_module
  • server
  • location
uwsgi_next_upstream_tries ngx_http_uwsgi_module
  • server
  • location
uwsgi_no_cache ngx_http_uwsgi_module
  • server
  • location
uwsgi_param ngx_http_uwsgi_module
  • server
  • location
uwsgi_pass ngx_http_uwsgi_module
  • location
  • if in location
uwsgi_pass_header ngx_http_uwsgi_module
  • server
  • location
uwsgi_pass_request_body ngx_http_uwsgi_module
  • server
  • location
uwsgi_pass_request_headers ngx_http_uwsgi_module
  • server
  • location
uwsgi_read_timeout ngx_http_uwsgi_module
  • server
  • location
uwsgi_request_buffering ngx_http_uwsgi_module
  • server
  • location
uwsgi_send_timeout ngx_http_uwsgi_module
  • server
  • location
uwsgi_store ngx_http_uwsgi_module
  • server
  • location
uwsgi_temp_file_write_size ngx_http_uwsgi_module
  • server
  • location
uwsgi_temp_path ngx_http_uwsgi_module
  • server
  • location
valid_referers ngx_http_referer_module
  • server
  • location
xml_entities ngx_http_xslt_module
  • server
  • location
xslt_last_modified ngx_http_xslt_module
  • server
  • location
xslt_param ngx_http_xslt_module
  • server
  • location
xslt_string_param ngx_http_xslt_module
  • server
  • location
xslt_stylesheet ngx_http_xslt_module
  • location
xslt_types ngx_http_xslt_module
  • server
  • location
zone ngx_http_upstream_module
  • upstream

補足 

HTTPS (SSL) のご利用について 

Gehirn RS2 Plus では HTTPS 通信をゲヒルンが管理するウェブサーバで終端し、お客さま専用の NGINX インスタンスに HTTP でリバースプロキシしています。

このため、アドバンスモードをご利用の場合でも HTTPS 関連の設定を記述する必要はございません。

一部 NGINX ディレクティブの利用制限について 

ゲヒルンが管理する設定と競合する一部の NGINX ディレクティブのご利用を制限させていただいております。

また、お客さまが設定されたほかの NGINX アドバンスドモードのサイトとの競合を防ぐため、複数のコンテキストで利用できる一部の NGINX ディレクティブについて http コンテキストにおける利用を制限しております。

不具合のご報告について 

Gehirn RS2 Plus では NGINX アドバンスモードの設定を NGINX に適用する前に、 NGINX とは異なる仕組み(構文解析器、パーサー)で設定の問題を検出しています。

この仕組みは NGINX と関係なくゲヒルンが独自に実装しているため、不具合により NGINX による実際の解釈と齟齬が生じる場合がございます。

有効なはずの設定がエラーになるなど、この齟齬によるものと思われる問題を発見した場合はお手数をおかけいたしますがサポートセンターよりご報告ください。

なお、ご報告の際は問題が発生する実際の設定内容をご提供くださいますと幸いです。

更新履歴 

更新日 更新内容
2022-02-10 公開
2022-02-16 次のディレクティブのコンテキストを修正
  • fastcgi_cache_path
  • proxy_cache_path
  • scgi_cache_path
  • uwsgi_cache_path
2022-03-24 以下のディレクティブを追加
  • map