search

Home  >  Q&A  >  body text

nginx - If the http proxy port built in go language is 80, will it have the same effect as the domain name resolved to the server IP?

For example, I used go to build an http proxy. The IP is 192.168.1.100 and the port is 80. After testing the proxy, there is no problem. Now I resolve a domain name to this IP. Direct access is not possible. If you want to achieve this effect, you should How to do it, forward it once with nginx?

天蓬老师天蓬老师2708 days ago1645

reply all(1)I'll reply

  • 世界只因有你

    世界只因有你2017-06-24 09:46:28

    When go starts, is it bound to the IP address instead of 0.0.0.0? Use netstat -antp to check that the local computer of go is 0.0.0.0:80

    reply
    0
  • Cancelreply