赞
踩
#匹配所有的接口转发到https://www.myTest.com
# 匹配接口/api/blog开头的
location /api/blog {
# proxy_cookie_domain www.myBlog.com www.myTest.com; # 解决不同域名设置domain的问题;
proxy_pass https://www.myTest.com;
proxy_set_header Host https://www.myTest.com; # 设置请求头中的Host属性为https://www.myTest.com
}
location / {
root /www/wwwroot/www.myBlog.com/react-blog;
index index.html index.htm;
try_files $uri $uri/ /index.html;
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。