ПРОЕКТЫ 


  АРХИВ 


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: Vadim Lazovskiy <vadim.lazovskiy@xxxxxxxxx>
  • Date: Fri, 17 May 2013 09:45:05 +0400
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=hYvn/pEVSyC6cQ1yQnJ/QQt/EfES6QqwwaKEIR9/96Y=; b=lDGyREMEkZST4YNbnD9VXwlXDr/JQZs9Xc8x6zJ6TKxjPDX2dvskFKjlq0XV3lPlSO imoUws6oLuDIXIses7UwoTwZZND8ZJ61CB/k2FnaahTEquiiRhBucFYh2d5QsoCab2SE g/T6lFn5Jnmxl3vJDpqf/mXNeGIiuViRfTGXSgIy4RAiYZsldab9bAhTwILkbaJag5vM Buql16nBj5OibKBXeqbl/Iqu6U9U9LCF8GHgitqqqET0W5/K3dN1vy8WlBWuw8rtgZq/ rWR5hA7eFi9RXSAVAMhQ/c2afuR1YbbjTqlJpeCY6mtOmuATyHGgwxJvyG62g/YYNaei I6KQ==
  • In-reply-to: <d9f8fb2543362b17a98f3903d0949a8e.NginxMailingListRussian@forum.nginx.org>
  • References: <d9f8fb2543362b17a98f3903d0949a8e.NginxMailingListRussian@forum.nginx.org>

Здравствуйте.




2013/5/17 bespechnost <nginx-forum@xxxxxxxx>
Пробую так:
location  /omlet_api/ {
    proxy_pass http://$arg_server/;
    proxy_set_header  Host $arg_server;
    break;
}

В логах:
==> localhost.error_log <==
2013/05/17 08:48:59 [error] 16907#0: *1 no resolver defined to resolve
ya.ru, client: 127.0.0.1, server: localhost, request: "GET
/omlet_api/genres/?server=ya.ru HTTP/1.1", host: "localhost"

Если заменить $arg_server на имя сервера, то все работает.

Версия NGINX - 1.2.6-r1

Posted at Nginx Forum: http://forum.nginx.org/read.php?21,239286,239286#msg-239286

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru



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


 




Copyright © Lexa Software, 1996-2009.