search

Home  >  Q&A  >  body text

windows-server - nginx proxy basic question?

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_leeringa_lee2754 days ago570

reply all(7)I'll reply

  • 滿天的星座

    滿天的星座2017-05-16 17:19:18

    The server can access the website locally,
    but if the external network wants to access your website, it needs to be registered

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-05-16 17:19:18

    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,

    reply
    0
  • 迷茫

    迷茫2017-05-16 17:19:18

    You are not registered, and you must remember to restart nginx after reverse proxying, otherwise the modification will not take effect.

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 17:19:18

    Alibaba Cloud needs to register, but foreign servers don’t seem to need to register.

    reply
    0
  • 我想大声告诉你

    我想大声告诉你2017-05-16 17:19:18

    Just try changing the port and you will know

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-16 17:19:18

    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.

    reply
    0
  • 黄舟

    黄舟2017-05-16 17:19:18

    The simplest solution is to change port 80

    reply
    0
  • Cancelreply