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

From wikieduonline
Jump to navigation Jump to search
Line 6: Line 6:
  
  
 +
<pre>
 
  server {
 
  server {
 
     listen 8356;
 
     listen 8356;
Line 13: Line 14:
 
     }
 
     }
 
  }
 
  }
 +
</pre>
  
 
[[Category:nginx]]
 
[[Category:nginx]]
 
[[Category:web]]
 
[[Category:web]]

Revision as of 11:08, 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://localhost:80/
    }
 }

Advertising: