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

前端 未结 5 909
梦如初夏
梦如初夏 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:46

    If you are on windows then below port related server settings are present in file nginx.conf at < nginx installation path >/conf folder.

    server {
        listen       80;
        server_name  localhost;
    ....
    

    Change the port number and restart the instance.

提交回复
热议问题