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: "Ncs" <nginx-forum@xxxxxxxx>
- Date: Thu, 07 Apr 2011 06:46:32 -0400
- Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mickey.jlkhosting.com; s=x; h=Date:Sender:From:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=zbsmEnE46b9iDwoXnvoSeto3Re+uGmjDftC4b0jZIhs=; b=KgYCFm5Rt5udZei8lWlcivquWoeTGXhFAKbPGj3e0HmTn5IloFY8bl5JMtv7gU5iuSRM62pCn3FRxCfeUbZEjmUPihzMDb3sAMhAlITYQ5aY27Dh2UKltoTXyKhX1pQy;
location / {
set $aa "ya.ru";
proxy_pass http://$aa;
}
выдается 502, если прописать явно без
переменной, то все ок.
Можно ли как-то задать проксируемый
хост в переменной?
Posted at Nginx Forum:
http://forum.nginx.org/read.php?21,189068,189068#msg-189068
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|