Skip to content

Listen ipv4/ipv6 port in nginx configuration

修改nginx.conf配置文件

    server {
        listen      0.0.0.0:80;
        listen      [::]:80;
    }

0.0.0.0 表示本机所有ipv4地址,需要监听特定地址替换即可

[::] 表示本机所有ipv6地址

Disclaimer
  1. License under CC BY-NC 4.0
  2. Copyright issue feedback me#imzye.me, replace # with @
  3. Not all the commands and scripts are tested in production environment, use at your own risk
  4. No privacy information is collected here
Try iOS App