SPA nginx 配置

location ~* .txt$ {

root /opt/project/weixincert;

proxy_redirect off;

proxy_buffering off;

proxy_set_header Host $host;

proxy_set_header X-Real-IP $remote_addr;

proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

}

location / {

root  /opt/project/member-h5;

try_files $uri $uri/ /index.html;

proxy_redirect off;

proxy_buffering off;

proxy_set_header        Host            devmemberh5asset.winbons.com;

proxy_set_header        X-Real-IP      $remote_addr;

proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;

}

你可能感兴趣的:(SPA nginx 配置)