diff --git a/index.md b/index.md index da6a940..07306ff 100644 --- a/index.md +++ b/index.md @@ -16,6 +16,7 @@ Setup [nginx](https://www.nginx.com/) webserver. Nginx is an open source reverse * [nginx_client_max_body_size](#nginx-client-max-body-size) * [nginx_csp_enabled](#nginx-csp-enabled) * [nginx_csp_options](#nginx-csp-options) + * [nginx_error_location](#nginx-error-location) * [nginx_error_log](#nginx-error-log) * [nginx_error_page](#nginx-error-page) * [nginx_group](#nginx-group) @@ -132,6 +133,20 @@ nginx_csp_options: - https://mypage.com ``` +### nginx_error_location + +Default error location. If set, the defined location will be automatically added once to every server block to handle custom error sites. + +#### Example usage + +```YAML +nginx_error_location: + match: / + root: /var/www/vhosts/default + index: index.html + custom_options: +``` + ### nginx_error_log #### Default value @@ -461,6 +476,7 @@ nginx_vhosts_default: proxy_send_timeout: 3600s proxy_headers: [] proxy_intercept_errors: "off" + custom_options: custom_options: - 'deny: all' ```