1 Star 0 Fork 527

易初/魔金多商户商城

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nginx 2.00 KB
一键复制 编辑 原始数据 按行查看 历史
1439226817@qq.com 提交于 2020-09-29 22:36 . bug fi
https://mojin.localhost/admin
https://mojin.localhost/store
https://mojin.localhost
--【静态部署】
server {
listen 8094;
server_name _;
root /app/amllplus/mojin/dist/;
index index.html;
try_files $uri $uri/ /index.html;
}
server {
listen 8095;
server_name _;
root /app/amllplus/mojin/store/;
index index.html;
try_files $uri $uri/ /index.html;
}
--【反向代理】
location /{
root /app/amllplus/mojin/h5/;
index index.html;
}
location /admin/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8094/;
}
location /store/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8095/;
}
location /api-web/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8091/;
}
location /api-admin/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8092/;
}
location /api-store/{
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/zwb_yichu/payshop.git
git@gitee.com:zwb_yichu/payshop.git
zwb_yichu
payshop
魔金多商户商城
master

搜索帮助