i茅台App多账户自动预约程序源码
正文:
搭建教程及环境配置
环境 ng 1.2 php不限制 数据库mysql5.6 rids 7.23
1:先导入数据库campus_imaotai-1.0.5.sql
2:新建php项目网站上传dist_1.0.12.tar文件到根目录解压
3:设置网站运行目录dist
4,网站配置文件添加下面代码
location / {
root /www/wwwroot/修改成你的网站目录/dist;
try_files $uri $uri/ /index.html;
index index.html index.htm;
}
location /prod-api/ {
proxy_set_header Host $http_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://localhost:8160/;
}
本文结束