centos 7 nginx基于域名和IP地址的虚拟主机

server {
    
    
      listen 192.168.80.130;
      root /var/www/web2/;
      location / {
    
    
               index index.html;
      }

} IP地址
server {
    
    
      listen 192.168.80.150;
      server_name www1.pip.cc;
      root /var/www/web3/;
      location / {
    
    
               index index.html;
      }

}  域名

猜你喜欢

转载自blog.csdn.net/qq_51235445/article/details/125247387
今日推荐