How does Alibaba Cloud ECSwindowsserver set the default port?

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.