打开下载的nginx文件夹下的。。具体地址
打开并编辑nginx.conf文件
server {listen 8089;//访问端口号server_name localhost;//访问地址#charset koi8-r;#access_log logs/host.access.log main;location / {root D:/development/dist/;//dist包地址index index.html index.htm;}
location /dagl {alias D:/development/dist;//第二个代理dist包地址index index.html index.htm;}location /jeecgboot {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://x.x.x.x:8080/jeecg-boot/;//后端服务器地址}
重启nginx命令
nginx -s reload