Welcome! Log In Create A New Profile

Advanced

Re: HTTP 505 error message supported by NGINX?

B.R.
August 04, 2015 07:34PM
It seems that by default nginx does not handle that HTTP code.

I just tried the following:
HEAD / HTTP/30.00
User-Agent: lollipop
Host: [EDITED]
Accept: */*

HTTP/1.1 200 OK
Server: nginx
Date: Tue, 04 Aug 2015 23:27:43 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Strict-Transport-Security: max-age=15984000

​So if you overload the status code with 505, the reason won't change and
still be 'OK'.​
​That would explain why you saw '505 OK' which is an heresy...​
---
*B. R.*

On Wed, Aug 5, 2015 at 1:25 AM, nginxuser100 <nginx-forum@nginx.us> wrote:

> Thank you Francis. The body content did the trick ... not as aesthetically
> pleasing to the eyes as the NGINX's "hard-coded reason phrase", but it is
> better than a blank page.
> I did not understand what you meant by a config to control the reason
> phrase.
> Thanks again.
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,260754,260761#msg-260761
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

HTTP 505 error message supported by NGINX?

nginxuser100 August 04, 2015 05:57PM

Re: HTTP 505 error message supported by NGINX?

B.R. August 04, 2015 06:06PM

Re: HTTP 505 error message supported by NGINX?

nginxuser100 August 04, 2015 06:19PM

Re: HTTP 505 error message supported by NGINX?

Francis Daly August 04, 2015 06:52PM

Re: HTTP 505 error message supported by NGINX?

nginxuser100 August 04, 2015 07:25PM

Re: HTTP 505 error message supported by NGINX?

B.R. August 04, 2015 07:34PM

Re: HTTP 505 error message supported by NGINX?

nginxuser100 August 05, 2015 01:29AM

Re: HTTP 505 error message supported by NGINX?

Francis Daly August 05, 2015 03:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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