希望新增部署自定义子路径,方便nginx做子路径反代 Nginx with Subpath (example.org/cloudreve)

plicqrtu  于 4个月前  发布在  Nginx
关注(0)|答案(4)|浏览(99)

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
nginx要反代很多服务,如果只把域名根路径“/”全给cloudreve服务,其他服务子路径比如example.org/jellyfin在清空网站缓存的前提下,直接访问example.org/jellyfin是可以正常访问的,但是一旦同时打开根路径example.org/的cloudreve服务,之后所有路径都会全部导向cloudreve服务
When configuring nginx to reverse proxy multiple services, if you only pass the root path "/" to the cloudreve service and leave other service paths like example.org/jellyfin untouched, accessing example.org/jellyfin directly should work fine after clearing the website cache. However, once you also open the root path example.org/ for the cloudreve service, all subsequent paths will be redirected to the cloudreve service.

Describe the solution you'd like
A clear and concise description of what you want to happen.
希望能增加cloudreve部署的子路径自定义设置,支持本机压缩包部署、docker部署的子路径配置
I suggest adding customizable sub-path settings for deploying Cloudreve, supporting sub-path configurations for both local compressed package deployment and Docker deployment.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
同时希望在使用文档中增加nginx子路径反代配置示例
I also recommend including examples of nginx sub-path reverse proxy configurations in the usage documentation.

Additional context
Add any other context or screenshots about the feature request here.
类似jellyfin的子路径官方使用文档示例
Similar to the official documentation examples for sub-path configuration of services like Jellyfin.

2uluyalo

2uluyalo1#

强烈需要这个功能,我折腾了好久没有弄成

enyaitl3

enyaitl32#

我也在nginx中配置了子路径,但是运行后打开是空白。

xpcnnkqh

xpcnnkqh3#

试试监听不同域名呢

hzbexzde

hzbexzde4#

监听不同的域名是可以的。但是这就意味着需要独占一个域名。如果能代理子路径最好。

相关问题