赞
踩
location /profile/ { proxy_pass http://127.0.0.1:8080/profile/; } location /prod-api { proxy_connect_timeout 15s; proxy_send_timeout 300s; proxy_read_timeout 300s; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_pass http://127.0.0.1:8080; } location / { index /mnt/sdc/HTML/manager/dist/index.html; try_files $uri $uri/ /index.html; }
location / {
index /mnt/sdc/HTML/manager/dist/index.html; 这是你自己文件放的地址 记得改!
try_files $uri $uri/ /index.html;
}
OK!搞定 下课。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。