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)