Welcome! Log In Create A New Profile

Advanced

Re: large_client_header_buffers: Custom error pages are not working

June 05, 2018 09:14AM
Thanks Maxim Dounin,
The trick worked.
I did something like the following:


server {
large_client_header_buffers 12 64;
...
error_page 494 =400 /400.json;
error_page 400 /400.json;

location = /400.json {
add_header Funky-Header1 'Funky Value' always;
root /etc/nginx/error-files/;
allow all;
internal;
}
}
& now I'm able to get my custom message and Header.

Cheers
Subject Author Posted

large_client_header_buffers: Custom error pages are not working

prajos June 05, 2018 05:34AM

Re: large_client_header_buffers: Custom error pages are not working

Maxim Dounin June 05, 2018 07:46AM

Re: large_client_header_buffers: Custom error pages are not working

prajos June 05, 2018 09:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 67
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready