How to start nginx via different port(other than 80)

前端 未结 5 907
梦如初夏
梦如初夏 2020-11-28 01:36

Hi I am a newbie on nginx, I tried to set it up on my server(running Ubuntu 4), which already has apache running.

So after I apt-get install it, I trie

5条回答
  •  青春惊慌失措
    2020-11-28 01:52

    If you are experiencing this problem when using Docker be sure to map the correct port numbers. If you map port 81:80 when running docker (or through docker-compose.yml), your nginx must listen on port 80 not 81, because docker does the mapping already.

    I spent quite some time on this issue myself, so hope it can be to some help for future googlers.

提交回复
热议问题