Nginx and 400 SSL error handling

Marcello Lorenzi cello86 at gmail.com
Wed Jun 12 14:28:54 UTC 2019


Hi,
It works correctly. Thanks for the tips.

Marcello

On Tue, Jun 11, 2019 at 10:46 AM Francis Daly <francis at daoine.org> wrote:

> On Tue, Jun 11, 2019 at 10:25:32AM +0200, Marcello Lorenzi wrote:
>
> Hi there,
>
> > Actually we would return a 401 error page instead a 400 error page but we
> > aren’t able to customize the HTTP code but only the message reported with
> > this configuration.
> >
> >         error_page 495 @error_ssl_495;
>
> Untested by me here, but
>
>   http://nginx.org/r/error_page
>
> shows that you can add another argument with "=" to set the response code,
> or to change to the response code that the uri returns.
>
> Cheers,
>
>         f
> --
> Francis Daly        francis at daoine.org
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20190612/61f24b91/attachment.html>


More information about the nginx mailing list