1.添加server,并且给其中一台添加location
vim /etc/nginx/nginx.conf

2.添加域名
mim /etc/hosts

3.创建虚拟机发布目录
mkdir /web
mkdir /web/lsl
mkdir /web/lsl2
echo "this lsl port is 90" > /web/lsl/index.html
echo "this lsl port is 100" > /web/lsl2/index.html
cp /usr/share/nginx/html/poweredby.png /web/lsl/1.png

检查配置文件确认与否
nginx -t
nginx -s reload

测试结果
