Nginx Reverse Proxy

Using CentOS 6 I installed Nginx with:

and amended the config file for the default website i.e.

With the following content:

So visiting the web address frontend.domain.co.uk:8080 as configured under the ‘server’ section will proxy the website from st.domain.co.uk:80

Advice on the web specified using $host or configuring the proxy_set_header:

However, when proxying IIS I found that I needed to actually enter the hostname rather than a variable.

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">