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

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
<code>proxy_pass</code> directive in used in [[Nginx]] for [[Reverse Proxy]] configurations.<ref>https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/</ref>
 
<code>proxy_pass</code> directive in used in [[Nginx]] for [[Reverse Proxy]] configurations.<ref>https://docs.nginx.com/nginx/admin-guide/web-server/reverse-proxy/</ref>
  
 +
location /some/path/ {
 +
    proxy_pass http://www.example.com/link/;
 +
}
  
  
 +
server {
 +
    listen 8356;
 +
 +
    location / {
 +
        proxy_pass http://localhost:80/
 +
    }
 +
}
  
 
[[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: