Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
proxy pass через переменную не работает
- To: nginx-ru@xxxxxxxxx
- Subject: proxy pass через переменную не работает
- From: "bespechnost" <nginx-forum@xxxxxxxx>
- Date: Fri, 17 May 2013 00:55:28 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=BQQZBIKOAT0Ly0v/6K7H/3u4XC6eaTUrUFirnJNlDoY=; b=ZQLDXZ8CJpgGuzXLi5dWzL8k5OanSiFWSkb5louV9zKzVuurhny0eovusQM/bJRC53xwv1FV6gnF83PG0cifhrpWI8iCEI/mp1EgTU/jFkXFn0h8kR8mGFoaG3NGWY10h33TxdPBZlTYx1EcyNzDgdTAjp7tYE0EPazH2f5zMVU=;
Пробую так:
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
|