Nginx虚拟主机多端口配置演示
Nginx虚拟主机多端口配置演示
1、Nginx虚拟主机多端口配置模型图
2、修改server1.conf、server1.conf、server2.conf配置
(1)server1.conf配置
(2)server2.conf配置
(3)server3.conf配置
3、重新启动Nginx进程服务
nginx -s stop
nginx -c /etc/nginx/nginx.conf
4、查看配置80 81 82端口服务是否生效
netstat -luntp