Welcome! Log In Create A New Profile

Advanced

proxy_pass через переменную не работает

May 17, 2013 12:55AM
Пробую так:
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
Subject Author Posted

proxy_pass через переменную не работает

bespechnost May 17, 2013 12:55AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready