Proxy_pass with runtime variables?
quanzhou822 at gmail.com
Fri Apr 2 08:00:01 MSD 2010
I'm having issues with reverse proxy on Nginx
I was setting up a reverse proxy listening [::0]:80 acts as 6 to 4 server on
Nginx, so I've tried $host, $server_name, $http_host in proxy_pass field,
but they all failed, and server threw same error:
[emerg]: invalid number of arguments in "proxy_pass" directive in
Here's my configuration file:
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_buffers 4 32k;
I want to know is that possible to get every site to be reverse proxied on
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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx