<html><head><title>Re: &acirc;&icirc;&iuml;&eth;&icirc;&ntilde; &iuml;&icirc; &iuml;&icirc;&acirc;&icirc;&auml;&oacute; proxy_set_header</title>
<META http-equiv=Content-Type content="text/html; charset=koi8-r">
</head>
<body>
<span style=" font-family:'Courier New'; font-size: 9pt;">Здравствуйте, Бехтерев.<br>
<br>
mod_rpaf например&nbsp;<a href="http://stderr.net/apache/rpaf/">http://stderr.net/apache/rpaf/</a><br>
<br>
Вы писали 23 мая 2010 г., 22:18:01:<br>
<br>
</span><table>
<tr>
<td width=1 bgcolor= #0000ff><br>
</td>
<td width=777><span style=" font-family:'arial'; font-size: 10pt;">Всем привет. Имею схему, когда nginx передает запрос Apache серверу:<br>
server {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; listen &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AA.BB.CC.DD:80;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp; &nbsp; www.abcd.ru abcd.ru;<br>
&nbsp;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;location / {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;proxy_pass http://192.168.0.10/$request_uri;<br>
&nbsp;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;include /usr/local/etc/nginx/proxy.conf;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br>
&nbsp;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; error_page &nbsp; 500 502 503 504 &nbsp;/50x.html;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; location = /50x.html {<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; root &nbsp; /var/www/nginx;<br>
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br>
&nbsp;<br>
&nbsp; &nbsp; &nbsp; &nbsp; }<br>
&nbsp;<br>
Собственно в самом /usr/local/etc/nginx/proxy.conf, в не зависимости от выставленной директивы proxy_set_header Host, в логах Апаче сервера получаю всегда $host=192.168.0.10. К примеру кусок лога:<br>
192.168.0.10 - - [23/May/2010:21:39:44 +0400] "GET //awstats/awstats.pl HTTP/1.0" 200 82737 "http://abcd.ru/awstats/awstats.pl " "Mozilla/5.0 (Windows; U; Windows NT 5.1; ru; rv:1.9.1.6) Gecko/20091201 Firefox/3.5.6"<br>
Хотя запрос физически идет с другого хоста. Можно как-то решить проблему?<br>
&nbsp;</td>
</tr>
</table>
<span style=" font-family:'Courier New'; font-size: 9pt;"><br><br>
<br>
<span style=" font-family:'arial'; font-size: 8pt; color: #c0c0c0;"><i>--&nbsp;<br>
С уважением,<br>
&nbsp;Nafania293 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a style=" font-style: normal;" href="mailto:Nafania293@gmail.com">mailto:Nafania293@gmail.com</a></body>