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

From wikieduonline
Jump to navigation Jump to search
Line 11: Line 11:
  
 
     location / {
 
     location / {
         proxy_pass http://localhost:80/
+
         proxy_pass http://www.example.com:80/
 
     }
 
     }
 
  }
 
  }

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

Advertising: