O'Reilly logo

Isomorphic Go by Kamesh Balasubramanian

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Proxy settings

The second section in the nginx configuration settings that is important is the reverse proxy settings.

We include the proxy_pass directive inside the location block with the value of the address and port of the web server. This specifies that all requests should be sent to the specified proxy server (igweb) located at http://192.168.1.207:8080.

Remember to replace the IP address 192.168.1.207 shown in this example with the IP address of the machine that is running your igweb instance.

The reverse proxy will fetch the response from the igweb server instance and send it back to the web client.

The proxy_set_header directive allows us to redefine (or append) fields to the request header that are passed on to the proxy server. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required