Custom nginx error page for “The SSL certificate error”
问题 If the customer will choose the expired certificate, the nginx server will show the built-in error page. <html> <head><title>400 The SSL certificate error</title></head> <body bgcolor="white"> <center><h1>400 Bad Request</h1></center> <center>The SSL certificate error</center> <hr><center>nginx</center> </body> </html> How can I catch the error and show the client a different page? 回答1: Please refer to http://nginx.org/en/docs/http/ngx_http_ssl_module.html#errors Define an error page for code