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-pass


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: proxy-pass
  • From: Nikolay Grebnev <nick@xxxxxxxxxxxx>
  • Date: Mon, 16 Mar 2009 12:49:31 +0300
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=z9y+nZaAnrTG9dRtcnBaM96TiITz87tT4LdShSFhyKU=; b=xeMf+lm9Pt89Q4POIInd/Ai4q7fdXJjbLc/BvB1+AvUoojLriy2APVUpTNXs267tHK SuxWResB8yHReL5bD9EORkCDycTgU5JACZKTRoELrc0S4bLk6cllS1R+j4L+Hvg+eRhb pop1mXWLVb4coz5uBtQTGPgy6MC+8jZyNpSdg=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=Ef+xTdr0aNr26/T5XV4NDQ4/49Wktu87sa9psh6BoZw5nLzodgrbhqHGSIioy1gTW9 mz6aov3Jd2Pgu2hg4iIlZCRzDj1F08t3xAUvScCZ673vIiIEyRW+IxLAlnFIJX0evMfN 1taylBrm/qFYip8jsf6F42N6w/oxOWDWf207U=
  • In-reply-to: <554262863.20090316015240@xxxxxxxxxxxxx>
  • References: <a7cd64c30903151356y47b846f2sc0d24a3f9591023a@xxxxxxxxxxxxxx> <554262863.20090316015240@xxxxxxxxxxxxx>

ok.

location / {
error_page 404 = @fallback;
}

location @fallback {
proxy_pass http://backend;
}
. -

location / {
error_page 404 = @fallback1;
error_page 404 = @fallback2;
error_page 404 = @fallback3;
error_page 404 = @fallback4;
error_page 404 = @fallback5;

}

location @fallback1 {
proxy_pass http://backend1;
}
location @fallback2 {
proxy_pass http://backend2;
}
location @fallback3 {
proxy_pass http://backend3;
}
location @fallback4 {
proxy_pass http://backend4;
}
location @fallback5 {
proxy_pass http://backend5;
}










2009/3/16 ۣ <postmaster@xxxxxxxxxxxxx>
, .

404- .

NG>
NG> location /static {
NG> root /static;
NG> index index.html index.htm;
NG> expires 1y;
NG> if (!-f $request_filename) {
NG> break;
NG> proxy_pass http://www.www.org ;
NG> }
NG> }

NG> , nginx
NG> ( - - proxy_pass http://www.www.org )
NG> , ????

NG>




--

,
ۣ, SoftSearch.ru
mailto:postmaster@xxxxxxxxxxxxx
ICQ# 166233339
http://michael.mindmix.ru/
.





 




Copyright © Lexa Software, 1996-2009.