-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
新增的 login 页面不支持二级目录的反代 #1137
Labels
bug
Something isn't working
Comments
见 #1129 |
按照上面的案例添加 rewrite
还是跳转到 http://1235.com/login 页。。。 |
+1, 6.6.3版,现在只能输入http://1235.com/ddns/login 才能正常使用。要不然还是出现上面的错误 |
通用chatgpt 找到一个凑合的办法:
这里添加了proxy_redirect / /ddns/;指令,这个指令会将后端返回的重定向响应头中的Location字段从/重写为/ddns/。这样,当后端应用重定向到/login时,Nginx会将其重写为/ddns/login。 |
这个是可以的,还处理了非标端口问题
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
问题描述
之前是可以通过 http://1235.com/ddns 这样来反代二级目录的,现在新增的 login 页面不会定位到 http://1235.com/ddns/login 下,而是 http://1235.com/login。导致页面显示出错。
DNS服务商
No response
是否已搜索同类问题
已搜索,但未能解决
操作系统
Linux
架构
x86_64
版本
v6.6
安装方式
Docker
额外信息
No response
The text was updated successfully, but these errors were encountered: