后台管理系统部署流程
1、进入解压的nginx的nginx-1.8.0\conf目录下。编辑nginx.conf文件
server {
server_name localboss.pppcloud.cn;
location / {
add_header Cache-Control no-store;
root D:\work\workspace\html\xcloud\public;
index index.html index.htm;
location /smartBus-Manager-v1{
proxy_pass http://127.0.0.1:8085$request_uri;
}
}
}
A、localboss.pppcloud.cn; 应配置到系统C:\Windows\System32\drivers\etc目录下host文件中127.0.0.1之后;浏览器输入访问的地址
B、D:\work\workspace\html\xcloud\public;为svn中前端项目中html中的xcloud\public目录;
C、smartBus-Manager-v1为后台项目名
D、http://127.0.0.1:8085$request_uri;代理地址
2、启动nginx 。Cmd进入nginx解压目录,startnginx.exe启动 nginx.exe -s stop
3、启动后台项目