Welcome! Log In Create A New Profile

Advanced

переменная в proxy_pass

Ncs
April 07, 2011 06:46AM
location / {
set $aa "ya.ru";
proxy_pass http://$aa;
}
выдается 502, если прописать явно без переменной, то все ок.
Можно ли как-то задать проксируемый хост в переменной?
Subject Author Posted

переменная в proxy_pass

Ncs April 07, 2011 06:46AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 223
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready