Our website URL is: domanty.com now uses nodejs to make a small application. The port for starting the server is 3000. currently, it cannot be accessed through domanty.com, but it can be accessed through domanty.com: 3000. We need to map directly through domanty.com... Our website is: domanty.com
Now a small application is made through nodejs, and the port to start the server is 3000.
Currently, it cannot be accessed through domanty.com, but it can be accessed through domanty.com: 3000.
We need to map to port 3000 directly through domanty.com. How can we set this on windows server?
Thanks
Reply content:
Our website is: domanty.com
Now a small application is made through nodejs, and the port to start the server is 3000.
Currently, it cannot be accessed through domanty.com, but it can be accessed through domanty.com: 3000.
We need to map to port 3000 directly through domanty.com. How can we set this on windows server?
Thanks
Modify the registry. The default value is 3000, or the reverse proxy software. In linux, I used nginx reverse proxy. Windows has not been tried. (iis and nginx should also be used)
The default port of the http request is 80, which is determined by the HTTP specification and cannot be changed.
You can use nginx or other agent software to listen to port 80 and then proxy to 3000.
However, according to your description, it is most convenient and practical to change the node. js startup server port to 80.