Welcome! Log In Create A New Profile

Advanced

Re: fastcgi_pass / error page /error code in HTTP rsp

June 08, 2015 05:52PM
Thank you Maxim, that was what I was looking for. However, it is still not returning the static error page. Does nginx expect a certain response format from the fcgi server? I tried:
"HTTP/1.1 400 Bad Request\r\nStatus: 400 Bad Request\r\n";
and
"HTTP/1.1 400 Bad Request";

The nginx.conf has:
root ...;
location xxx {
include fastcgi_params;
fastcgi_pass ...;
error_page 400 /my_bad_request; <-- inside or outside this location block didn't make a difference
fastcgi_intercept_errors on;
}

location /my_bad_request {
try_files /bad_request.html = 400;
}

Thank you!
Subject Author Posted

fastcgi_pass / error page /error code in HTTP rsp

nginxuser100 June 08, 2015 03:14PM

Re: fastcgi_pass / error page /error code in HTTP rsp

Maxim Dounin June 08, 2015 03:26PM

Re: fastcgi_pass / error page /error code in HTTP rsp

nginxuser100 June 08, 2015 05:52PM

Re: fastcgi_pass / error page /error code in HTTP rsp

nginxuser100 June 08, 2015 08:13PM

Re: fastcgi_pass / error page /error code in HTTP rsp

nginxuser100 June 09, 2015 12:29AM

Re: fastcgi_pass / error page /error code in HTTP rsp

Francis Daly June 09, 2015 03:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 110
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