nginx发布antd-pro项目(别人发的,未测试)
生活随笔
收集整理的這篇文章主要介紹了
nginx发布antd-pro项目(别人发的,未测试)
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
?
?
?
server {listen 80;server_name localhost;#charset koi8-r;charset utf-8; #access_log logs/host.access.log main;# location / { # root html; # index index.html index.htm; # }#對 / 所有做負載均衡+反向代理location / {proxy_pass http://10.121.22.171:8080; proxy_redirect off;# 后端的Web服務器可以通過X-Forwarded-For獲取用戶真實IPproxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;}#靜態(tài)文件location ~* / { root /home/qtsm/imb-demo/dist; index index.html index.htm;proxy_pass http://imb; }?
轉載于:https://www.cnblogs.com/Leechg/p/10248174.html
總結
以上是生活随笔為你收集整理的nginx发布antd-pro项目(别人发的,未测试)的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: javaweb 要学习的东西
- 下一篇: 20190110-用笨办法找到二维矩阵的