ПРОЕКТЫ 


  АРХИВ 


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: location на сторонний ресур с...


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: location на сторонний ресур с...
  • From: Eugene Batogov <johnbat26@xxxxxxxxx>
  • Date: Wed, 20 Apr 2011 14:09:38 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:date:user-agent:references :in-reply-to:mime-version:message-id:content-type :content-transfer-encoding; bh=MLQy7oJf1l1arnDIAoq8TYQZW4njScx7gBdffFIxFcA=; b=MPw48koeRL2qPEDT1pIRki3wrEihmbQoMudHM6wLzRl4fu0zbs4sNthIzFwYgeHo0M q97rSTMvnthDMBOHEY+L+Z3aYv8YoROXuP2G1i97fVJiPDBOrXwi3CGi44pAbiVTf7BT 5ZPKnwz2oZ2ty2RYegPYzPbl8jNA0y03wGhfo=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version :message-id:content-type:content-transfer-encoding; b=AZhH7Nkb2v7Bw8jgrepJW0sKfBxFoeEAOzpWD7IQl51oGcI9rkpSpY0vf0ZCru/3L9 +5tpcWN7+YcOQGR01gQlgvGd5rV3tLWy8icodrYllQbI9pYeibxYcC+IUPeof8uiyls1 zNOqPJXiAzOKuUujKidajqootmAEUJAj/3Aq8=
  • In-reply-to: <201104201123.52257.JohnBat26@xxxxxxxxx>
  • References: <201104201123.52257.JohnBat26@xxxxxxxxx>

    Nginx теперь стартует без dns сервера.
 Но если есть dns сервер, то теперь фотки не работают.
 Делал и так:
 
 http {
 resolver 127.0.0.1;
 
 ....
         location /portal-facade-picasa/ {
         location ~ ^/portal-facade-picasa/(.+)$ {
         proxy_pass http://picasaweb.google.com/$1?args;
         proxy_set_header  Host picasaweb.google.com;
         add_header Content-Type application/x-javascript;
         break;
 }
 }
 
 
 
 и так:
 
 
 http {
 resolver 127.0.0.1;
 
 ....
         location /portal-facade-picasa/ {
         location ~ ^/portal-facade-picasa/(.+)$ {
         proxy_pass http://picasaweb.google.com/$1?args;
      
 }
 }

-- 
Best Regards, Eugene Batogov

-- 
Best Regards, Eugene Batogov
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.