server {
listen 80;
server_name 54wi.com;
index index.jsp index.html;
root /yjdata/www/www/;
location / {
proxy_pass http://127.0.0.1:8080/;
}
}
server {
listen 80;
server_name ututor.54wi.com;
root /yjdata/www/www/ututor/;
index login.html;
# 首页重定向
location =/ {
rewrite ^/ http://ututor.54wi.com/views/index.html last;
}
location / {
proxy_pass http://127.0.0.1:8080/ututor/;
}
}
nginx虚拟主机配置
最新推荐文章于 2022-04-10 11:27:45 发布