请问老师 这里的 proxy_pass http://www.yqrb.com.cn
来源:11-5 nginx和域名的配置

lovejavacoffee
2019-11-28
server {
listen 80;
server_name admin.yqrb.com.cn;
access_log /usr/local/nginx/logs/access.log combined;
index index.html index.htm index.jsp index.php;
location = / {
root /product/front/admin-v2-fe/dist;
index index.html;
}
location ~ .*\.html$ {
root /product/front/admin-v2-fe/dist;
index index.html;
}
location ~ .*\.do$ {
proxy_pass http://www.yqrb.com.cn;
}
location / {
try_files $uri $uri/ /index.html;
}
}
请问老师 这里的 proxy_pass http://www.yqrb.com.cn 我是用虚拟机通过本地host 指向的为什么不可以的
写回答
1回答
-
lovejavacoffee
提问者
2019-11-28
http://127.0.0.1:8080 用这个搞定了哈哈
00
相似问题