vue history 开发环境下nginx设置

                location /jxjy_app {
                        proxy_set_header  X-Real-IP  $remote_addr;
                        proxy_set_header X-Forwarded-For         
                        $proxy_add_x_forwarded_for;
                        proxy_set_header Host $http_host;
                        proxy_redirect off;
                        try_files $uri $uri/ /index.html =404;
                        client_max_body_size 100M;
                        proxy_pass http://192.168.0.17:3001;
                 }        

  

原文地址:https://www.cnblogs.com/6324/p/10454674.html