Squid has a mechanism by which incoming URL's can be passed to an
external program to be rewritten and the reverse proxy subsequently
calls out to the rewritten URL
http://wiki.squid-cache.org/SquidFaq/SquidRedirectors
Is there a way to emulate this from within nginx
Thanks, Yusuf
Changes with nginx 0.3.51 30 Jun 2006
*) Bugfix: the "<" symbols might disappeared some conditions in the
SSI; bug appeared in 0.3.50.
Igor Sysoev
http://sysoev.ru/en/
Changes with nginx 0.3.50 28 Jun 2006
*) Change: the "proxy_redirect_errors" and "fastcgi_redirect_errors"
directives was renamed to the "proxy_intercept_errors" and
"fastcgi_intercept_errors" directives.
*) Feature: the ngx_http_charset_module supports the recoding from the
single byte encodings to the UTF-8 encoding and back.
*) Feature: the "X-Accel-Charset" response header line is supported in
proxy and FastCGI mode.
*) Bugfix: the "\" escape symbol in the "\"" and "\'" pairs in the SSI
command was removed only if the command also has the "$" symbol.
*) Bugfix: the "<!--" string might be added on some conditions in the
SSI after inclusion.
*) Bugfix: if the "Content-Length: 0" header line was in response, then
in nonbuffered proxying mode the client connection was not closed.
Igor Sysoev
http://sysoev.ru/en/
Hi, I have been able to use error_page for error code 502,503,504 when
nginx is used as a reverse proxy.
Is it possible to use error_page to handle 403,404 responses from the
upstream and replace it with an error_page specifed in nginx
I tried to use the following
error_page 404 /40x.html;
location /40x.html {
root /tux/ ;
}
But when I request the URL (which doesn't exist), I get the response
generated by the upstream backend server
The corresponding stanza for 50x codes work correctly (when the
upstream backend is not answering)
error_page 502 503 504 /50x.html;
location /50x.html {
root /tux/ ;
}
nginx when configured as a reverse proxy seems to utilise two directories
a) nginx http client request body temporary files: $prefix/client_body_temp
b) nginx http proxy temporary files: $prefix/proxy_temp
The assumption I'm making is that nginx buffers the client body in the
directory when client_body_size is greater than
client_body_buffer_size and on the response writes out the response to
the directory if the response size is greater than proxy_buffers
Or have I got this wrong
Also, can the above directories be placed on tmpfs (memory
filesystems). If so, are there any guidelines on sizing the filesystem
Thanks in advance