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

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

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

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

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

ディレクティブモジュールコンテキスト補足
access_logngx_http_log_module
  • server
  • location
  • if in location
  • limit_except
/var/log/sites/ホスト名/access.nginx.log のみ
add_after_bodyngx_http_addition_module
  • server
  • location
add_before_bodyngx_http_addition_module
  • server
  • location
add_headerngx_http_headers_module
  • server
  • location
  • if in location
add_trailerngx_http_headers_module
  • server
  • location
  • if in location
addition_typesngx_http_addition_module
  • server
  • location
aliasngx_http_core_module
  • location
root をご参照ください
allowngx_http_access_module
  • server
  • location
  • limit_except
ancient_browserngx_http_browser_module
  • server
  • location
ancient_browser_valuengx_http_browser_module
  • server
  • location
auth_basicngx_http_auth_basic_module
  • server
  • location
  • limit_except
auth_basic_user_filengx_http_auth_basic_module
  • server
  • location
  • limit_except
auth_delayngx_http_core_module
  • server
  • location
auth_requestngx_http_auth_request_module
  • server
  • location
auth_request_setngx_http_auth_request_module
  • server
  • location
autoindexngx_http_autoindex_module
  • server
  • location
autoindex_exact_sizengx_http_autoindex_module
  • server
  • location
autoindex_formatngx_http_autoindex_module
  • server
  • location
autoindex_localtimengx_http_autoindex_module
  • server
  • location
breakngx_http_rewrite_module
  • server
  • location
  • if
charsetngx_http_charset_module
  • server
  • location
  • if in location
charset_typesngx_http_charset_module
  • server
  • location
chunked_transfer_encodingngx_http_core_module
  • server
  • location
client_max_body_sizengx_http_core_module
  • server
  • location
default_typengx_http_core_module
  • server
  • location
denyngx_http_access_module
  • server
  • location
  • limit_except
empty_gifngx_http_empty_gif_module
  • location
error_logngx_core_module
  • server
  • location
/var/log/sites/ホスト名/error.nginx.log のみ
error_pagengx_http_core_module
  • server
  • location
  • if in location
etagngx_http_core_module
  • server
  • location
expiresngx_http_headers_module
  • server
  • location
  • if in location
fastcgi_buffer_sizengx_http_fastcgi_module
  • server
  • location
fastcgi_bufferingngx_http_fastcgi_module
  • server
  • location
fastcgi_buffersngx_http_fastcgi_module
  • server
  • location
fastcgi_busy_buffers_sizengx_http_fastcgi_module
  • server
  • location
fastcgi_cachengx_http_fastcgi_module
  • server
  • location
fastcgi_cache_background_updatengx_http_fastcgi_module
  • server
  • location
fastcgi_cache_bypassngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_keyngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_lockngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_lock_agengx_http_fastcgi_module
  • server
  • location
fastcgi_cache_lock_timeoutngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_max_range_offsetngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_methodsngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_min_usesngx_http_fastcgi_module
  • server
  • location
fastcgi_cache_pathngx_http_fastcgi_module
  • http
fastcgi_cache_revalidatengx_http_fastcgi_module
  • server
  • location
fastcgi_cache_use_stalengx_http_fastcgi_module
  • server
  • location
fastcgi_cache_validngx_http_fastcgi_module
  • server
  • location
fastcgi_catch_stderrngx_http_fastcgi_module
  • server
  • location
fastcgi_connect_timeoutngx_http_fastcgi_module
  • server
  • location
fastcgi_force_rangesngx_http_fastcgi_module
  • server
  • location
fastcgi_hide_headerngx_http_fastcgi_module
  • server
  • location
fastcgi_ignore_client_abortngx_http_fastcgi_module
  • server
  • location
fastcgi_ignore_headersngx_http_fastcgi_module
  • server
  • location
fastcgi_indexngx_http_fastcgi_module
  • server
  • location
fastcgi_intercept_errorsngx_http_fastcgi_module
  • server
  • location
fastcgi_limit_ratengx_http_fastcgi_module
  • server
  • location
fastcgi_max_temp_file_sizengx_http_fastcgi_module
  • server
  • location
fastcgi_next_upstreamngx_http_fastcgi_module
  • server
  • location
fastcgi_next_upstream_timeoutngx_http_fastcgi_module
  • server
  • location
fastcgi_next_upstream_triesngx_http_fastcgi_module
  • server
  • location
fastcgi_no_cachengx_http_fastcgi_module
  • server
  • location
fastcgi_paramngx_http_fastcgi_module
  • server
  • location
fastcgi_passngx_http_fastcgi_module
  • location
  • if in location
fastcgi_pass_headerngx_http_fastcgi_module
  • server
  • location
fastcgi_pass_request_bodyngx_http_fastcgi_module
  • server
  • location
fastcgi_pass_request_headersngx_http_fastcgi_module
  • server
  • location
fastcgi_read_timeoutngx_http_fastcgi_module
  • server
  • location
fastcgi_request_bufferingngx_http_fastcgi_module
  • server
  • location
fastcgi_send_timeoutngx_http_fastcgi_module
  • server
  • location
fastcgi_split_path_infongx_http_fastcgi_module
  • location
fastcgi_storengx_http_fastcgi_module
  • server
  • location
fastcgi_temp_file_write_sizengx_http_fastcgi_module
  • server
  • location
fastcgi_temp_pathngx_http_fastcgi_module
  • server
  • location
geongx_http_geo_module
  • http
以下のディレクティブ以外をご利用になれます。
  • include
  • proxy
  • proxy_recursive
hashngx_http_upstream_module
  • upstream
ifngx_http_rewrite_module
  • server
  • location
if_modified_sincengx_http_core_module
  • server
  • location
image_filterngx_http_image_filter_module
  • location
image_filter_bufferngx_http_image_filter_module
  • server
  • location
image_filter_interlacengx_http_image_filter_module
  • server
  • location
image_filter_jpeg_qualityngx_http_image_filter_module
  • server
  • location
image_filter_sharpenngx_http_image_filter_module
  • server
  • location
image_filter_transparencyngx_http_image_filter_module
  • server
  • location
image_filter_webp_qualityngx_http_image_filter_module
  • server
  • location
includengx_core_module
  • http 以外
以下のファイルのみ
  • fastcgi_params
  • fastcgi.conf
  • proxy_params
  • scgi_params
  • uwsgi_params
indexngx_http_index_module
  • server
  • location
internalngx_http_core_module
  • location
ip_hashngx_http_upstream_module
  • upstream
keepalivengx_http_upstream_module
  • upstream
keepalive_requestsngx_http_upstream_module
  • upstream
keepalive_timengx_http_upstream_module
  • upstream
keepalive_timeoutngx_http_upstream_module
  • upstream
least_connngx_http_upstream_module
  • upstream
limit_connngx_http_limit_conn_module
  • server
  • location
limit_conn_dry_runngx_http_limit_conn_module
  • server
  • location
limit_conn_log_levelngx_http_limit_conn_module
  • server
  • location
limit_conn_statusngx_http_limit_conn_module
  • server
  • location
limit_conn_zonengx_http_limit_conn_module
  • http
limit_exceptngx_http_core_module
  • location
limit_reqngx_http_limit_req_module
  • server
  • location
limit_req_dry_runngx_http_limit_req_module
  • server
  • location
limit_req_log_levelngx_http_limit_req_module
  • server
  • location
limit_req_statusngx_http_limit_req_module
  • server
  • location
limit_req_zonengx_http_limit_req_module
  • http
listenngx_http_core_module
  • server
listen 80; のみ
locationngx_http_core_module
  • server
  • location
log_not_foundngx_http_core_module
  • server
  • location
log_subrequestngx_http_core_module
  • server
  • location
mapngx_http_map_module
  • http
include パラメーターはご利用になれません。
max_rangesngx_http_core_module
  • server
  • location
modern_browserngx_http_browser_module
  • server
  • location
modern_browser_valuengx_http_browser_module
  • server
  • location
msie_paddingngx_http_core_module
  • server
  • location
msie_refreshngx_http_core_module
  • server
  • location
override_charsetngx_http_charset_module
  • server
  • location
  • if in location
proxy_buffer_sizengx_http_proxy_module
  • server
  • location
proxy_bufferingngx_http_proxy_module
  • server
  • location
proxy_buffersngx_http_proxy_module
  • server
  • location
proxy_busy_buffers_sizengx_http_proxy_module
  • server
  • location
proxy_cachengx_http_proxy_module
  • server
  • location
proxy_cache_background_updatengx_http_proxy_module
  • server
  • location
proxy_cache_bypassngx_http_proxy_module
  • server
  • location
proxy_cache_convert_headngx_http_proxy_module
  • server
  • location
proxy_cache_keyngx_http_proxy_module
  • server
  • location
proxy_cache_lockngx_http_proxy_module
  • server
  • location
proxy_cache_lock_agengx_http_proxy_module
  • server
  • location
proxy_cache_lock_timeoutngx_http_proxy_module
  • server
  • location
proxy_cache_max_range_offsetngx_http_proxy_module
  • server
  • location
proxy_cache_methodsngx_http_proxy_module
  • server
  • location
proxy_cache_min_usesngx_http_proxy_module
  • server
  • location
proxy_cache_pathngx_http_proxy_module
  • http
proxy_cache_revalidatengx_http_proxy_module
  • server
  • location
proxy_cache_use_stalengx_http_proxy_module
  • server
  • location
proxy_cache_validngx_http_proxy_module
  • server
  • location
proxy_connect_timeoutngx_http_proxy_module
  • server
  • location
proxy_force_rangesngx_http_proxy_module
  • server
  • location
proxy_headers_hash_bucket_sizengx_http_proxy_module
  • server
  • location
proxy_headers_hash_max_sizengx_http_proxy_module
  • server
  • location
proxy_hide_headerngx_http_proxy_module
  • server
  • location
proxy_http_versionngx_http_proxy_module
  • server
  • location
proxy_ignore_headersngx_http_proxy_module
  • server
  • location
proxy_intercept_errorsngx_http_proxy_module
  • server
  • location
proxy_limit_ratengx_http_proxy_module
  • server
  • location
proxy_methodngx_http_proxy_module
  • server
  • location
proxy_next_upstreamngx_http_proxy_module
  • server
  • location
proxy_next_upstream_timeoutngx_http_proxy_module
  • server
  • location
proxy_next_upstream_triesngx_http_proxy_module
  • server
  • location
proxy_no_cachengx_http_proxy_module
  • server
  • location
proxy_passngx_http_proxy_module
  • location
  • if in location
  • limit_except
proxy_pass_headerngx_http_proxy_module
  • server
  • location
proxy_pass_request_bodyngx_http_proxy_module
  • server
  • location
proxy_pass_request_headersngx_http_proxy_module
  • server
  • location
proxy_read_timeoutngx_http_proxy_module
  • server
  • location
proxy_redirectngx_http_proxy_module
  • server
  • location
proxy_request_bufferingngx_http_proxy_module
  • server
  • location
proxy_send_timeoutngx_http_proxy_module
  • server
  • location
proxy_set_bodyngx_http_proxy_module
  • server
  • location
proxy_set_headerngx_http_proxy_module
  • server
  • location
proxy_storengx_http_proxy_module
  • server
  • location
proxy_temp_file_write_sizengx_http_proxy_module
  • server
  • location
proxy_temp_pathngx_http_proxy_module
  • server
  • location
recursive_error_pagesngx_http_core_module
  • server
  • location
referer_hash_bucket_sizengx_http_referer_module
  • server
  • location
referer_hash_max_sizengx_http_referer_module
  • server
  • location
returnngx_http_rewrite_module
  • server
  • location
  • if
rewritengx_http_rewrite_module
  • server
  • location
  • if
rewrite_logngx_http_rewrite_module
  • server
  • location
  • if
rootngx_http_core_module
  • server
  • location
  • if in location
/var/www 以下のディレクトリ
satisfyngx_http_core_module
  • server
  • location
scgi_buffer_sizengx_http_scgi_module
  • server
  • location
scgi_bufferingngx_http_scgi_module
  • server
  • location
scgi_buffersngx_http_scgi_module
  • server
  • location
scgi_busy_buffers_sizengx_http_scgi_module
  • server
  • location
scgi_cachengx_http_scgi_module
  • server
  • location
scgi_cache_background_updatengx_http_scgi_module
  • server
  • location
scgi_cache_bypassngx_http_scgi_module
  • server
  • location
scgi_cache_keyngx_http_scgi_module
  • server
  • location
scgi_cache_lockngx_http_scgi_module
  • server
  • location
scgi_cache_lock_agengx_http_scgi_module
  • server
  • location
scgi_cache_lock_timeoutngx_http_scgi_module
  • server
  • location
scgi_cache_max_range_offsetngx_http_scgi_module
  • server
  • location
scgi_cache_methodsngx_http_scgi_module
  • server
  • location
scgi_cache_min_usesngx_http_scgi_module
  • server
  • location
scgi_cache_pathngx_http_scgi_module
  • http
scgi_cache_revalidatengx_http_scgi_module
  • server
  • location
scgi_cache_use_stalengx_http_scgi_module
  • server
  • location
scgi_cache_validngx_http_scgi_module
  • server
  • location
scgi_connect_timeoutngx_http_scgi_module
  • server
  • location
scgi_force_rangesngx_http_scgi_module
  • server
  • location
scgi_hide_headerngx_http_scgi_module
  • server
  • location
scgi_ignore_client_abortngx_http_scgi_module
  • server
  • location
scgi_ignore_headersngx_http_scgi_module
  • server
  • location
scgi_intercept_errorsngx_http_scgi_module
  • server
  • location
scgi_limit_ratengx_http_scgi_module
  • server
  • location
scgi_max_temp_file_sizengx_http_scgi_module
  • server
  • location
scgi_next_upstreamngx_http_scgi_module
  • server
  • location
scgi_next_upstream_timeoutngx_http_scgi_module
  • server
  • location
scgi_next_upstream_triesngx_http_scgi_module
  • server
  • location
scgi_no_cachengx_http_scgi_module
  • server
  • location
scgi_paramngx_http_scgi_module
  • server
  • location
scgi_passngx_http_scgi_module
  • location
  • if in location
scgi_pass_headerngx_http_scgi_module
  • server
  • location
scgi_pass_request_bodyngx_http_scgi_module
  • server
  • location
scgi_pass_request_headersngx_http_scgi_module
  • server
  • location
scgi_read_timeoutngx_http_scgi_module
  • server
  • location
scgi_request_bufferingngx_http_scgi_module
  • server
  • location
scgi_send_timeoutngx_http_scgi_module
  • server
  • location
scgi_storengx_http_scgi_module
  • server
  • location
scgi_temp_file_write_sizengx_http_scgi_module
  • server
  • location
scgi_temp_pathngx_http_scgi_module
  • server
  • location
serverngx_http_core_module
  • http
1 つのみ記述可能です。また、必ず 1 つの設定が必要です。
serverngx_http_upstream_module
  • upstream
以下のパラメーターはご利用になれません。
  • resolve
  • service
server_namengx_http_core_module
  • server
Gehirn RS2 Plus サイトのホスト名のみ
setngx_http_rewrite_module
  • server
  • location
  • if
slicengx_http_slice_module
  • server
  • location
source_charsetngx_http_charset_module
  • server
  • location
  • if in location
split_clientsngx_http_split_clients_module
  • http
ssingx_http_ssi_module
  • server
  • location
  • if in location
ssi_last_modifiedngx_http_ssi_module
  • server
  • location
ssi_min_file_chunkngx_http_ssi_module
  • server
  • location
ssi_silent_errorsngx_http_ssi_module
  • server
  • location
ssi_typesngx_http_ssi_module
  • server
  • location
ssi_value_lengthngx_http_ssi_module
  • server
  • location
statusngx_http_status_module
  • location
status_formatngx_http_status_module
  • server
  • location
status_zonengx_http_status_module
  • server
stub_statusngx_http_stub_status_module
  • server
  • location
sub_filterngx_http_sub_module
  • server
  • location
sub_filter_last_modifiedngx_http_sub_module
  • server
  • location
sub_filter_oncengx_http_sub_module
  • server
  • location
sub_filter_typesngx_http_sub_module
  • server
  • location
try_filesngx_http_core_module
  • server
  • location
typesngx_http_core_module
  • server
  • location
uninitialized_variable_warnngx_http_rewrite_module
  • server
  • location
  • if
upstreamngx_http_upstream_module
  • http
uwsgi_buffer_sizengx_http_uwsgi_module
  • server
  • location
uwsgi_bufferingngx_http_uwsgi_module
  • server
  • location
uwsgi_buffersngx_http_uwsgi_module
  • server
  • location
uwsgi_busy_buffers_sizengx_http_uwsgi_module
  • server
  • location
uwsgi_cachengx_http_uwsgi_module
  • server
  • location
uwsgi_cache_background_updatengx_http_uwsgi_module
  • server
  • location
uwsgi_cache_bypassngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_keyngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_lockngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_lock_agengx_http_uwsgi_module
  • server
  • location
uwsgi_cache_lock_timeoutngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_max_range_offsetngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_methodsngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_min_usesngx_http_uwsgi_module
  • server
  • location
uwsgi_cache_pathngx_http_uwsgi_module
  • http
uwsgi_cache_revalidatengx_http_uwsgi_module
  • server
  • location
uwsgi_cache_use_stalengx_http_uwsgi_module
  • server
  • location
uwsgi_cache_validngx_http_uwsgi_module
  • server
  • location
uwsgi_connect_timeoutngx_http_uwsgi_module
  • server
  • location
uwsgi_force_rangesngx_http_uwsgi_module
  • server
  • location
uwsgi_hide_headerngx_http_uwsgi_module
  • server
  • location
uwsgi_ignore_headersngx_http_uwsgi_module
  • server
  • location
uwsgi_intercept_errorsngx_http_uwsgi_module
  • server
  • location
uwsgi_limit_ratengx_http_uwsgi_module
  • server
  • location
uwsgi_max_temp_file_sizengx_http_uwsgi_module
  • server
  • location
uwsgi_modifier1ngx_http_uwsgi_module
  • server
  • location
uwsgi_modifier2ngx_http_uwsgi_module
  • server
  • location
uwsgi_next_upstreamngx_http_uwsgi_module
  • server
  • location
uwsgi_next_upstream_timeoutngx_http_uwsgi_module
  • server
  • location
uwsgi_next_upstream_triesngx_http_uwsgi_module
  • server
  • location
uwsgi_no_cachengx_http_uwsgi_module
  • server
  • location
uwsgi_paramngx_http_uwsgi_module
  • server
  • location
uwsgi_passngx_http_uwsgi_module
  • location
  • if in location
uwsgi_pass_headerngx_http_uwsgi_module
  • server
  • location
uwsgi_pass_request_bodyngx_http_uwsgi_module
  • server
  • location
uwsgi_pass_request_headersngx_http_uwsgi_module
  • server
  • location
uwsgi_read_timeoutngx_http_uwsgi_module
  • server
  • location
uwsgi_request_bufferingngx_http_uwsgi_module
  • server
  • location
uwsgi_send_timeoutngx_http_uwsgi_module
  • server
  • location
uwsgi_storengx_http_uwsgi_module
  • server
  • location
uwsgi_temp_file_write_sizengx_http_uwsgi_module
  • server
  • location
uwsgi_temp_pathngx_http_uwsgi_module
  • server
  • location
valid_referersngx_http_referer_module
  • server
  • location
xml_entitiesngx_http_xslt_module
  • server
  • location
xslt_last_modifiedngx_http_xslt_module
  • server
  • location
xslt_paramngx_http_xslt_module
  • server
  • location
xslt_string_paramngx_http_xslt_module
  • server
  • location
xslt_stylesheetngx_http_xslt_module
  • location
xslt_typesngx_http_xslt_module
  • server
  • location
zonengx_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