server { listen 80; root /www/web/wanda; server_name vr.wanda-dev.cn; index index.html index.htm; location ~ /\.ht { deny all; } location / { try_files $uri $uri/ @router; index index.html; } location @router { rewrite ^.*$ /index.html last; } location /api { proxy_pass https://cloudwic.wanda-dev.cn/b2bshop/api; } access_log /www/weblogs/vr.wanda-dev.cn_access.log wwwlogs; error_log /www/weblogs/vr.wanda-dev.cn_error.log; }