Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Re: Return different code if return code is 400

$
0
0
Hello,

I found the solution myself. Actually, nginx was returning 400 in error log, but the internal returned code was 495. So I added above all locations in server {} the following:

error_page 495 =401 /mypage.html;

All works as expected, hopefully I did not mess something else on the way.

Thanks!

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>