---
# System prepended metadata

title: Vue 掛載在 path 下時 Nginx history mode 的設定
tags: [Nginx]

---

###### tags: `Nginx`

# Vue 掛載在 path 下時 Nginx history mode 的設定

```nginx=
location ^~ /url-path {
    alias /disk/path/to/vue/project;
    index index.html;
    try_files $uri $uri/ /url-path/index.html;
}
```