server { listen 80; index index.html index.htm index.php; root /var/www/html/vue_todo; location / { try_files $uri $uri/ @router; index index.html; }
location @router {
rewrite ^.*$ /index.html last;
}
}
server { listen 80; index index.html index.htm index.php; root /var/www/html/vue_todo; location / { try_files $uri $uri/ @router; index index.html; }
location @router {
rewrite ^.*$ /index.html last;
}
}