Hi all,<div><br></div><div>I&#39;m having issues with reverse proxy on Nginx</div><div><br></div><div>I was setting up a reverse proxy listening [::0]:80 acts as 6 to 4 server on Nginx, so I&#39;ve tried $host, $server_name, $http_host in proxy_pass field, but they all failed, and server threw same error:</div>

<blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><br></div><div> [emerg]: invalid number of arguments in &quot;proxy_pass&quot; directive in /etc/nginx/sites-enabled/reverse.proxy:16</div>

</div></blockquote><br><div><div>Here&#39;s my configuration file:</div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><div><div>server {</div></div></div>
<div>
<div><div>        listen   [::0]:80;</div></div></div><div><div><div>        server_name  *.*;</div></div></div><div><div><div><br></div></div></div><div><div><div>        access_log  off;</div></div></div><div><div><div>

        error_log off;</div></div></div><div><div><div><br></div></div></div><div><div><div>        location /{</div></div></div><div><div><div>                proxy_pass $server_name</div></div></div><div><div><div>                proxy_set_header Host $http_host;</div>

</div></div><div><div><div>                proxy_set_header X-Real-IP $remote_addr;</div></div></div><div><div><div>                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;</div></div></div><div><div>
<div>
<br></div></div></div><div><div><div>                client_max_body_size 10m;</div></div></div><div><div><div>                client_body_buffer_size 128k;</div></div></div><div><div><div><br></div></div></div><div><div>

<div>                proxy_connect_timeout 90;</div></div></div><div><div><div>                proxy_send_timeout 90;</div></div></div><div><div><div>                proxy_read_timeout 90;</div></div></div><div><div><div>

<br></div></div></div><div><div><div>                proxy_buffer_size 4k;</div></div></div><div><div><div>                proxy_buffers 4 32k;</div></div></div><div><div><div>                proxy_busy_buffers_size 64k;</div>

</div></div><div><div><div>                proxy_temp_file_write_seze 64k;</div></div></div><div><div><br></div></div><div><div><div><br></div></div></div><div><div><div>         }</div></div></div><div><div><div><br></div>

</div></div><div><div><div>  }</div></div></div></blockquote><div><div><div><br></div><div>I want to know is that possible to get every site to be reverse proxied on Nginx?</div><div><br></div><div>Thanks:)</div><div><br>

</div><div>Quan Zhou</div>-- </div><div>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></div>