Welcome! Log In Create A New Profile

Advanced

Re: Logging embedded Perl return value

All files from this thread

File Name File Size   Posted by Date  
patch.any_status 8.5 KB open | download Igor Sysoev 04/10/2009 Read message
April 10, 2009 06:33AM
On Thu, Apr 09, 2009 at 04:54:27AM -0400, davidc wrote:

> Thanks for the speedy nginx and speedy reply Igor.
>
> The $status value does indeed log the 200 response.
>
> Is it possible to configure nginx to return custom http status codes?
>
> e.g. use a 299 and 298 code that are interpreted as a 200 OK by a custom
> http client. The last two digits would signal information that would otherwise
> have to be contained in a new header or body.

The attached patch allows to use any status code in the "return" directive
and the perl module.


--
Igor Sysoev
http://sysoev.ru/en/
Attachments:
open | download - patch.any_status (8.5 KB)
Subject Author Posted

Logging embedded Perl return value

davidc April 08, 2009 11:41PM

Re: Logging embedded Perl return value

Igor Sysoev April 09, 2009 01:16AM

Re: Logging embedded Perl return value

davidc April 09, 2009 04:54AM

Re: Logging embedded Perl return value Attachments

Igor Sysoev April 10, 2009 06:33AM

Re: Logging embedded Perl return value

davidc July 07, 2009 05:59AM

Re: Logging embedded Perl return value

davidc July 07, 2009 11:26PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 146
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready