mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
Created 配合nginx让MinDoc运行在二级子目录 (markdown)
9
配合nginx让MinDoc运行在二级子目录.md
Normal file
9
配合nginx让MinDoc运行在二级子目录.md
Normal file
@@ -0,0 +1,9 @@
|
||||
从 v0.10 以及以上版本开发,MinDoc支持运行在二级子目录。
|
||||
|
||||
要想让MinDoc运行在二级子目录,需要在app.conf配置文件中配置`baseurl`项为你的域名,例如:`https://www.iminho.me/wiki`。
|
||||
|
||||
之后,在nginx中配置路由规则,将属于MinDoc的路由重定向到MinDoc端口。配置如下:
|
||||
|
||||
```
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user