RHEL7下Nginx虚拟主机配置(三)

时间:2016-06-24 20:53:55   收藏:0   阅读:286

RHEL7Nginx虚拟主机配置

       前面两节讲过安装和配置文件了,这里写出配置文件,大家根据内容修改配置文件就可以了。

       http {

              server{

       listen    80;

       server_name   192.168.1.20;

       access_log        log/192.168.1.20 main;

       location / {

index    index.html;

root      /application/nginx/html/;

}

}

       server{

       linsten  80;

       server_name   192.168.1.30;

       access_log        log/192.168.1.30 main;

       location / {

index    index.html;

root      /application/nginx/html/;

}

}

}

本文出自 “随风飘扬” 博客,请务必保留此出处http://wjb10000.blog.51cto.com/9702295/1792546

原文:http://wjb10000.blog.51cto.com/9702295/1792546

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!