将
https://example.com/
重定向至https://example.com/admin
前置要求
已在 Nginx Proxy Manager 中添加并配置好需要进行重定向的域名
配置过程
- 登录 Nginx Proxy Manager 管理面板
- 找到并编辑需要配置重定向的域名对应的代理主机(Proxy Host)
- 切换至
Custom locations
标签,配置如下:

将
https://example.com/
重定向至https://example.com/admin
已在 Nginx Proxy Manager 中添加并配置好需要进行重定向的域名
Custom locations
标签,配置如下: