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
- License under
CC BY-NC 4.0
- Copyright issue feedback
me#imzye.me
, replace # with @ - Not all the commands and scripts are tested in production environment, use at your own risk
- No privacy information is collected here