Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have nginx on pc "A" & IIS with ASP.NET on pc "B".

nginx is configured like this:

... location ~ ((Web|Script)Resource.*)$ {

            proxy_pass "B"/$1;
            proxy_redirect off;
            proxy_set_header REMOTE_ADDR $remote_addr;
            proxy_set_header REQUEST_URI $request_uri;
            proxy_set_header HTTP_REFERER $http_referer;
            #proxy_set_header  REQUEST_URI $request_uri;
            proxy_set_header  QUERY_STRING $query_string;
            proxy_set_header   X-Real-IP $remote_addr;
            proxy_set_header   Host $http_host;
            proxy_set_header   X-Forwarded-For $proxy_add_x_forwarded_for;

but requests to


aren't able to deliver GET data (a=b&c=d) to IIS part.

Could anyone help with this?


There's some additional info:

nginx is also configured to proxy other data to Apache, running on "A" everything is fine there (at least GET is OK).

configuration is the same as above, but for different location

share|improve this question
Does POST data work? – Mark Henderson May 19 '10 at 22:35

server {
listen 80;
server_name “B” URL; - - - - -For example or

location / {
proxy_pass http://“B”intranet IP:port; - - - - -For example

proxy_set_header Host $host;

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.