@@ -38,8 +38,9 @@ rules to be specified without downloading or mounting in a rule file.
3838 for easy tracking in down stream logs e.g. ` nginxId=50c91049-667f-4286-c2f0-86b04b27d3f0 ` .
3939 If set to ` HEADER ` it will add ` nginxId ` to the headers, not append to the get params.
4040* ` CLIENT_CERT_REQUIRED ` - if set to ` TRUE ` , will deny access at this location, see [ Client Certs] ( #client-certs ) .
41- * ` ERROR_REDIRECT_CODES ` - Can override when Nginx will redirect requests to the error page. Defaults to
42- "` 500 501 502 503 504 ` "
41+ * ` ERROR_REDIRECT_CODES ` - Can override when Nginx will redirect requests to its own error page. Defaults to
42+ "` 500 501 502 503 504 ` ". To support a new code, say ` 505 ` , an error page must be provided at
43+ ` /usr/local/openresty/nginx/html/505.shtml ` , see [ Useful File Locations] ( #useful-file-locations ) .
4344* ` ADD_NGINX_LOCATION_CFG ` - Arbitrary extra NGINX configuration to be added to the location context, see
4445[ Arbitrary Config] ( #arbitrary-config ) .
4546* ` PORT_IN_HOST_HEADER ` - If FALSE will remove the port from the http ` Host ` header.
@@ -101,9 +102,11 @@ N.B. see HTTP(S)_LISTEN_PORT above
101102See ` CLIENT_CERT_REQUIRED ` above in [ Environment Variables] ( #environment-variables ) .
102103* ` /usr/local/openresty/naxsi/*.conf ` - [ Naxsi] ( https://github.com/nbs-system/naxsi ) rules location in default
103104nginx.conf.
104- * ` /usr/local/openresty/nginx/html/50x.html ` - HTML displayed when a 500 error occurs. See ERROR_REDIRECT_CODES to
105- change this.
106-
105+ * ` /usr/local/openresty/nginx/html/$CODE.shtml ` - HTML (with SSI support) displayed when a the status code $CODE
106+ is encountered upstream and the proxy is configured to intercept. See ERROR_REDIRECT_CODES to change this.
107+ * ` /usr/local/openresty/nginx/html/418-request-denied.shtml ` - HTML (with SSI support) displayed when NAXSI
108+ blocks a request.
109+
107110### Examples
108111
109112#### Self signed SSL Certificate
0 commit comments