windows-server - nginx proxy basic question?
ringa_lee
ringa_lee 2017-05-16 17:17:18
0
7
510

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...

ringa_lee
ringa_lee

ringa_lee

reply all(7)
滿天的星座

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!