<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">Thank you for your reply, igor.<br>I&#39;ve corrected server name field with a &#39;_&#39; (and tried $host<br>

$http_host later), and both $server_name and $host can pass the<br>grammar check, it doesn&#39;t work finally, actually, it returns a cacti<br>page on my server for any request, I&#39;ve checked entire configuration<br>files, cacti is only assigned to a domain name but bind to [::]:80,<br>

however, I don&#39;t think this caused cacti has highier priority ...<br>:confused<br><br>Quan Zhou<br>Sent from my Windows(R) phone.</span><br><br><div class="gmail_quote">On Fri, Apr 2, 2010 at 4:03 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 12:00:01PM +0800, Quan Zhou wrote:<br>
<br>
&gt; Hi all,<br>
&gt;<br>
&gt; I&#39;m having issues with reverse proxy on Nginx<br>
&gt;<br>
&gt; I was setting up a reverse proxy listening [::0]:80 acts as 6 to 4 server on<br>
&gt; Nginx, so I&#39;ve tried $host, $server_name, $http_host in proxy_pass field,<br>
&gt; but they all failed, and server threw same error:<br>
&gt;<br>
&gt;<br>
&gt;  [emerg]: invalid number of arguments in &quot;proxy_pass&quot; directive in<br>
&gt; /etc/nginx/sites-enabled/reverse.proxy:16<br>
&gt;<br>
&gt;<br>
&gt; Here&#39;s my configuration file:<br>
&gt;<br>
&gt; server {<br>
&gt;         listen   [::0]:80;<br>
&gt;         server_name  *.*;<br>
<br>
</div>&quot;*.*&quot; is invalid server_name.<br>
<div class="im"><br>
&gt;         access_log  off;<br>
&gt;         error_log off;<br>
&gt;<br>
&gt;         location /{<br>
&gt;                 proxy_pass $server_name<br>
<br>
</div>-                 proxy_pass $server_name<br>
+                 proxy_pass $server_name;<br>
<br>
or probably<br>
<br>
-                 proxy_pass $server_name<br>
+                 proxy_pass $host;<br>
<font color="#888888"><br>
<br>
--<br>
Igor Sysoev<br>
<a href="http://sysoev.ru/en/" target="_blank">http://sysoev.ru/en/</a><br>
<br>
_______________________________________________<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>
</font></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>