<div dir="ltr">Здравствуйте.<div><br></div><div>Задайте <a href="http://nginx.org/ru/docs/http/ngx_http_core_module.html#resolver">http://nginx.org/ru/docs/http/ngx_http_core_module.html#resolver</a> в конфиге.</div><div style>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/17 bespechnost <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Пробую так:<br>
location  /omlet_api/ {<br>
    proxy_pass http://$arg_server/;<br>
    proxy_set_header  Host $arg_server;<br>
    break;<br>
}<br>
<br>
В логах:<br>
==> localhost.error_log <==<br>
2013/05/17 08:48:59 [error] 16907#0: *1 no resolver defined to resolve<br>
<a href="http://ya.ru" target="_blank">ya.ru</a>, client: 127.0.0.1, server: localhost, request: "GET<br>
/omlet_api/genres/?server=<a href="http://ya.ru" target="_blank">ya.ru</a> HTTP/1.1", host: "localhost"<br>
<br>
Если заменить $arg_server на имя сервера, то все работает.<br>
<br>
Версия NGINX - 1.2.6-r1<br>
<br>
Posted at Nginx Forum: <a href="http://forum.nginx.org/read.php?21,239286,239286#msg-239286" target="_blank">http://forum.nginx.org/read.php?21,239286,239286#msg-239286</a><br>
<br>
_______________________________________________<br>
nginx-ru mailing list<br>
<a href="mailto:nginx-ru@nginx.org">nginx-ru@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx-ru" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx-ru</a></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Best Regards,<br>
<div>Vadim Lazovskiy</div></div>
</div>