ðòïåëôù 


  áòèé÷ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  óôáôøé 


  ðåòóïîáìøîïå 


  ðòïçòáííù 



ðéûéôå
ðéóøíá












     áòèé÷ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proxy error handling


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Proxy error handling
  • From: Roxis <roxis@xxxxxxx>
  • Date: Thu, 28 Feb 2008 14:57:28 +0100
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:references:in-reply-to:x-face:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; bh=25xOsoVoxGOldDE7ehiYYbHuuzIUBBmsqXzMe3l37R4=; b=b7+cn3ndSpGcOtOjj0H+tj+7ZWpPdJSMuvq79UvQYu+DKOicHH4Zs3NmuwpU0990bEmACgefCBRdIIMQNP7JvG1CIkWQkgr1dMxWvhUz8InC/dGY7hq9pb5QW3KlCFK1YjcAXXakghxqVJ5B6CZtxtU0JR6Yi0kQfOD0oRl3DEY=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:references:in-reply-to:x-face:x-mailer:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; b=efU9y4GDQZjvZKUnhw4N7DVeC5vJEDNWCv5dikRldblrZG+QYBnkC5tCtN/YBvnxwnK5tCYlXtI0eA/EHn4SCBlwLyHc/sEWygSNfar8Oyr+nWzPtfPUEtiDE2Ve+U+tOxwZAD8LRB8ufMSzvj9QY7x1x7VOWlIURE8qUZhHlGc=
  • In-reply-to: <009b01c87a0c$ede12290$c9a367b0$@ru>
  • References: <009b01c87a0c$ede12290$c9a367b0$@ru>

On Thursday 28 February 2008, Igor Shergin wrote:
> server {
>
>         listen 80;
>         server_name proxytest;
>         access_log "/var/log/nginx/proxytest_log";
>         error_log "/var/log/nginx/proxytest_error";
>
>         location / {
>             proxy_intercept_errors on;
>             proxy_pass http://backend;
>             error_page 404 = @nopic;
>         }
>
>         location @nopic {
>            root /home/proxytest;

-            rewrite ^/test3(.*)$     /3.jpg;
-            rewrite ^/test2(.*)$     /2.jpg;
-            rewrite ^/test1(.*)$     /1.jpg;
+           rewrite ^/test3(.*)$     /3.jpg break;
+           rewrite ^/test2(.*)$     /2.jpg break;
+           rewrite ^/test1(.*)$     /1.jpg break;

>            return 200;
>         }
>
> }



 




Copyright © Lexa Software, 1996-2009.