Difference between revisions of "Proxy pass (Reverse proxy)"

From wikieduonline
Jump to navigation Jump to search
Line 15: Line 15:
 
  }
 
  }
 
</pre>
 
</pre>
 +
 +
 +
 +
proxy_http_version 1.1;
 +
proxy_set_header
 +
  
  

Revision as of 14:30, 29 December 2019

proxy_pass directive in used in Nginx for Reverse Proxy configurations.[1]

location /some/path/ {
   proxy_pass http://www.example.com/link/;
}


 server {
    listen 8356;

    location / {
        proxy_pass http://www.example.com:80/
    }
 }


proxy_http_version 1.1;
proxy_set_header


Related directives: upstream (Load balancing)


See also

  • https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/
  • Advertising: