How to make proxy on nginx?

Posted by Adrian K. on Server Fault See other posts from Server Fault or by Adrian K.
Published on 2012-08-29T07:15:52Z Indexed on 2012/09/23 3:39 UTC
Read the original article Hit count: 515

Filed under:
|
|
|

How would I set my webservers to work in way described below?

  • Http request: mypublic.com ---> handled normally by nginx as it is set up already (listen 80;)

  • Http request: myprivate.com ---> handled by apache set up to work on 8080 (listen 8080)

I'd like to avoid including ports when typing address in browser, some kind of mockup (proxy?). Both of domains are pointing to my machine and set up by named.

© Server Fault or respective owner

Related posts about apache2

Related posts about nginx