配置nginx
在html中新建文件夹yuming1 yuming2,并在其中新建index.html文件
vim nginx
server {
listen 80;
server_name www.nginx-test.cn;
location / {
root html/yuming1;
index index.html index.htm;
}
}
server {
listen 80;
server_name www.nginx-test.com;
location / {
root html/yuming2;
index index.html index.htm;
}