Welcome! Log In Create A New Profile

Advanced

How to set up NGINX in Windows (What are the requirments?)

Posted by ying.s.wu 
How to set up NGINX in Windows (What are the requirments?)
April 05, 2016 03:46PM
We are working on installing NGINX in Windows that will perform reverse proxy for us to allow users click on an url from their local desktop that will access a page set up in our virtual machine. In between there may be firewall.
URL example: http://hostsite:XX/page XX = port number

Example conf file:
Server {
location /page { proxy_pass http://vmtrueipaddress }
}

Basically user can access http://vmtrueipaddress from their desktop using http://hostsite:XX/page without going into our VM. Our conf file works before, but now we are moving to a new virtual machine.

Question: What are some requirement for this? Do we need to open port "XX" in the firewall to allow communication? Do we need to specific Host name "hostsite"? Right now http://hostsite:XX/page works within our VM, but not from desktop.

Much Appreciate,
Junior App Admin
Re: How to set up NGINX in Windows (What are the requirments?)
April 05, 2016 04:57PM
You need to add a DNS entry for hostsite to the DNS server you have locally which your desktops are using.

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: How to set up NGINX in Windows (What are the requirments?)
April 05, 2016 09:09PM
Update: Yes, I set up the DNS for the hostname. However, I still can't connect.... Do you think I need to set up the port? Because when I tried to open my url from Firefox, I get the error message of

"This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection."

I have a feeling that my URL is directing to the port of my VM, which I'm not sure if I need to open that port, and I'm not sure if that port is on my firewall.... Thoughts?
Re: How to set up NGINX in Windows (What are the requirments?)
April 06, 2016 01:55AM
If FF complaints about the port then yes you should allow that port to be used.
Or make nginx listen on a common port and proxypass to where ever the backend lives.

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 169
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready