Welcome! Log In Create A New Profile

Advanced

[PATCH] Add http_403 option to proxy_next_upstream

All files from this thread

File Name File Size   Posted by Date  
add-http_403-proxy_next_upstream-nginx-0.6.32.patch 3.2 KB open | download Patrick Coleman 08/10/2009 Read message
add-http_403-proxy_next_upstream-nginx-0.8.7.patch 3.6 KB open | download Patrick Coleman 08/10/2009 Read message
Patrick Coleman
August 10, 2009 02:20AM
Hi,

Hopefully this is the appropriate place to submit this patch - if not
let me know.

This is a patch to add a 'http_403' option to the proxy_next_upstream
directive. This allows additional upstream servers to be tried (if
desired) when the upstream server returns a 403 response code. In my
case, this was required to work around some broken behaviour in MacOS
X, where the shipped Apache server would return 403 error rather than
a 404 when a user directory did not exist.

Patches are attached against nginx 0.6.32 (the version shipped with
Debian Lenny) and 0.8.7 (latest development). Note that I have not
tested the 0.8.7 patch, as it's not what we run in production, but it
does compile without warnings.

Any feedback appreciated.

Cheers,

Patrick

--
http://www.labyrinthdata.net.au - WA Backup, Web and VPS Hosting
Attachments:
open | download - add-http_403-proxy_next_upstream-nginx-0.6.32.patch (3.2 KB)
open | download - add-http_403-proxy_next_upstream-nginx-0.8.7.patch (3.6 KB)
Subject Author Posted

[PATCH] Add http_403 option to proxy_next_upstream Attachments

Patrick Coleman August 10, 2009 02:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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