nginx 部署vue

vue

server {

listen 80;

server_name localhost;

root /www/meiduo_admin/dist;

access_log /var/log/nginx/admin_access.log;

error_log /var/log/nginx/admin_error.log;

location / {

try_files $uri $uri/ @router;

index index.html index.htm;

}

location @router {

rewrite ^.*$ /index.html last;

}

}

以上是 nginx 部署vue 的全部内容, 来源链接: utcz.com/z/375547.html

回到顶部