error_page not honored

Maxim Dounin mdounin at mdounin.ru
Wed Jun 19 12:17:08 UTC 2019


Hello!

On Tue, Jun 18, 2019 at 10:54:06AM -0700, Frank Liu wrote:

> I setup my own error_page for 400 but it doesn't seem to be honored. The
> default page still is returned when client failed to provide certificate.
> Any ideas?

Quoting docs 
(http://nginx.org/en/docs/http/ngx_http_ssl_module.html#errors):

: The ngx_http_ssl_module module supports several non-standard 
: error codes that can be used for redirects using the error_page 
: directive:
: 
: 495
: an error has occurred during the client certificate verification;
: 496
: a client has not presented the required certificate;
: 497
: a regular request has been sent to the HTTPS port.

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx mailing list