Sorry, I was on mobile phone, and it can&#39;t recognize mail list... My appologize.<div><br><div class="gmail_quote">On Fri, Apr 2, 2010 at 5:09 PM, Igor Sysoev <span dir="ltr">&lt;<a href="mailto:igor@sysoev.ru">igor@sysoev.ru</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Fri, Apr 02, 2010 at 02:04:37AM -0700, Quan Zhou wrote:<br>
<br>
&gt; I&#39;ve changed the address to, but it works the same, I wonder how<br>
&gt; proxy_pass works, I guess it&#39;s working in IPv4 in my case.<br>
<br>
</div>Please respond to the list <a href="mailto:nginx@nginx.org">nginx@nginx.org</a>, but not to me.<br>
Could you create debug log of request ?<br>
<font color="#888888"><br>
<br>
--<br>
</font><div class="im">Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
</div><div><div></div><div class="h5">&gt; 从我的 Windows(R) phone 发送。<br>
&gt;<br>
&gt; ----- 原始邮件 -----<br>
&gt; 发件人: Igor Sysoev &lt;<a href="mailto:igor@sysoev.ru">igor@sysoev.ru</a>&gt;<br>
&gt; 发送时间: 2010年4月2日 星期五 16:54<br>
&gt; 收件人: <a href="mailto:nginx@nginx.org">nginx@nginx.org</a> &lt;<a href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;<br>
&gt; 主题: Re: ??: Re: Proxy_pass with runtime variables?<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Apr 02, 2010 at 01:48:04AM -0700, Quan Zhou wrote:<br>
&gt;<br>
&gt; &gt; Thank you for your reply, igor.<br>
&gt; &gt; I&#39;ve corrected server name field with a &#39;_&#39; (and tried $host<br>
&gt; &gt; $http_host later), and both $server_name and $host can pass the<br>
&gt; &gt; grammar check, it doesn&#39;t work finally, actually, it returns a cacti<br>
&gt; &gt; page on my server for any request, I&#39;ve checked entire configuration<br>
&gt; &gt; files, cacti is only assigned to a domain name but bind to [::]:80,<br>
&gt; &gt; however, I don&#39;t think this caused cacti has highier priority ...<br>
&gt; &gt; :confused<br>
&gt;<br>
&gt; nginx can not bind to [::0]:80 since it&#39;s the same as [::]:80.<br>
&gt; Besides, nginx does not support IPV6 in proxy_pass now.<br>
&gt;<br>
&gt; &gt; Quan Zhou<br>
&gt; &gt; Sent from my Windows(R) phone.<br>
&gt; &gt;<br>
&gt; &gt; ----- 原始邮件 -----<br>
&gt; &gt; 发件人: Igor Sysoev &lt;<a href="mailto:igor@sysoev.ru">igor@sysoev.ru</a>&gt;<br>
&gt; &gt; 发送时间: 2010年4月2日 星期五 16:03<br>
&gt; &gt; 收件人: <a href="mailto:nginx@nginx.org">nginx@nginx.org</a> &lt;<a href="mailto:nginx@nginx.org">nginx@nginx.org</a>&gt;<br>
&gt; &gt; 主题: Re: Proxy_pass with runtime variables?<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; On Fri, Apr 02, 2010 at 12:00:01PM +0800, Quan Zhou wrote:<br>
&gt; &gt;<br>
&gt; &gt; &gt; Hi all,<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I&#39;m having issues with reverse proxy on Nginx<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; I was setting up a reverse proxy listening [::0]:80 acts as 6 to 4 server on<br>
&gt; &gt; &gt; Nginx, so I&#39;ve tried $host, $server_name, $http_host in proxy_pass field,<br>
&gt; &gt; &gt; but they all failed, and server threw same error:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp;[emerg]: invalid number of arguments in &quot;proxy_pass&quot; directive in<br>
&gt; &gt; &gt; /etc/nginx/sites-enabled/reverse.proxy:16<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; Here&#39;s my configuration file:<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; server {<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; listen &nbsp; [::0]:80;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; server_name &nbsp;*.*;<br>
&gt; &gt;<br>
&gt; &gt; &quot;*.*&quot; is invalid server_name.<br>
&gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; access_log &nbsp;off;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; error_log off;<br>
&gt; &gt; &gt;<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; location /{<br>
&gt; &gt; &gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass $server_name<br>
&gt; &gt;<br>
&gt; &gt; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass $server_name<br>
&gt; &gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass $server_name;<br>
&gt; &gt;<br>
&gt; &gt; or probably<br>
&gt; &gt;<br>
&gt; &gt; - &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass $server_name<br>
&gt; &gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; proxy_pass $host;<br>
<br>
</div></div><div><div></div><div class="h5">_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://nginx.org/mailman/listinfo/nginx" target="_blank">http://nginx.org/mailman/listinfo/nginx</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Individuals who have received this information in error or are not authorized to receive it must promptly return or dispose of the information and notify the sender. Those individuals are hereby notified that they are strictly prohibited from reviewing, forwarding, printing, copying, distributing or using this information in any way.<br>


</div>