I have an Alibaba Cloud server. The operating system is windows server 2008. I have installed the jboss server, applied for a domain name, and have resolved the domain name to the space. The current project access path is as follows,
http://beta.yaoxiao2.cn:8180
The effect I expect is this: http://beta.yaoxiao2.cn; that is, go to the port number to access the website
Question: I realized it through the nginx proxy server, and I can access the port on the Alibaba Cloud server. But, I can’t access the port on my local computer?
The rendering of Alibaba Cloud server browser access is as follows:
The access effect of non-Alibaba Cloud server browser [local computer] is as follows:
Non-Alibaba Cloud server browsers [local computers] can only be accessed by adding port 8180. The rendering is as follows:
nginx configuration is as follows:
Question: How can I achieve port access locally? I'm a newbie, please give me some answers, I'd be very grateful...
The server can access the website locally,
but if the external network wants to access your website, it needs to be registered
I’ve been looking at it for a long time and I need to register it. If you don't register, you can only add the port number.
Then, why should we use Windows as a server system? Basically we have never seen a Windows server,
You are not registered, and you must remember to restart nginx after reverse proxying, otherwise the modification will not take effect.
Alibaba Cloud needs to register, but foreign servers don’t seem to need to register.
Just try changing the port and you will know
Alibaba Cloud must be registered. If it is not registered, it will not be analyzed for you. You can try it. You can definitely access the Alibaba Cloud website using IP. The same goes for our company’s website, which can be accessed after registration.
The simplest solution is to change port 80