jenkins
2019-05-28 本文已影响0人
Eden0204
server {
listen 80;
server_name localhost;
index index.html index.htm index.php;
root /home/dist;
charset utf-8;
location / {
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass http://test.wo.51shebao.com/api;
proxy_set_header X-Real-IP $remote_addr;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
}