)
移动端Vueserver{listen80;server_name localhost;#上传文件大小 client_max_body_size 100M;location/prod-api/{proxy_set_header Host $http_host;proxy_set_headerX-Real-IP$remote_addr;proxy_set_headerREMOTE-HOST$remote_addr;proxy_set_headerX-Forwarded-For $proxy_add_x_forwarded_for;proxy_pass http://localhost:8080/;}location/{root/Users/mac/Projects/th1/release/mobile;try_files $uri $uri//index.html;index index.html index.htm;}}后台server{listen8000;location/{root/Users/mac/Projects/th1/release/admin;try_files $uri $uri//index.html;index index.html index.htm;}location/prod-api/{proxy_set_header Host $http_host;proxy_set_headerX-Real-IP$remote_addr;proxy_set_headerREMOTE-HOST$remote_addr;proxy_set_headerX-Forwarded-For $proxy_add_x_forwarded_for;proxy_pass http://localhost:8080/;}}说明使用监听两个端口的方式发布。