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!
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!