Skip to content
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

宝塔反代127.0.0.1:5244如果使用了非标准接口的SSL会导致在线观看的地址不会加端口 #4181

Closed
4 tasks done
Winyer opened this issue Apr 17, 2023 · 12 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@Winyer
Copy link

Winyer commented Apr 17, 2023

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure it's due to alist and not something else(such as Dependencies or Operational).
  • I'm sure I'm using the latest version

Alist Version / Alist 版本

v3.16.0

Driver used / 使用的存储驱动

all

Describe the bug / 问题描述

如题,宝塔反代127.0.0.1:5244如果使用了非标准接口的SSL会导致在线观看的地址不会加端口
主要表现为,我用的SSL端口为其他端口非443端口时,如https://abc.com:1564这样时,在线观看时获取到的视频的链接会变成https://abc.com/p/1.mp4,而不是https://abc.com:1564/p/1.mp4(链接带/p/是因为开启了代理),希望能够修复一下

另:获取到的文件下载链接则是正常的带了端口的

问题如图所示:
bug1

Reproduction / 复现链接

Logs / 日志

No response

@Winyer Winyer added the bug Something isn't working label Apr 17, 2023
@Winyer
Copy link
Author

Winyer commented Apr 17, 2023

补充说明下,没有获取到端口也就不能获取到文件地址导致了无法在线观看,还有不使用443端口是因为运营商没有给443端口开放的权限,所以只能用非标准端口了

@Winyer
Copy link
Author

Winyer commented Apr 17, 2023

再补充一条,经测试,关闭代理后此问题消失,能够正常获取到端口

@xhofe xhofe added the duplicate This issue or pull request already exists label Apr 17, 2023
@github-actions
Copy link

Hello @Winyer, your issue is a duplicate and will be closed.
你好 @Winyer,你的issue是重复的,将被关闭。

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2023
@xhofe
Copy link
Member

xhofe commented Apr 17, 2023

#3644 (comment)

@Winyer
Copy link
Author

Winyer commented Apr 17, 2023

#3644 (comment)

好的,我去试试,谢谢

@Winyer
Copy link
Author

Winyer commented Apr 17, 2023

#3644 (comment)

好的,我去试试,谢谢

记录下我这42分钟的反复折腾,反复重建网站配置规则吧,如果能帮到后面的人就更好了可能因为自己没接触过相关的,所以很吃力,到现在我才明白是要在宝塔-网站设置-反向代理里面点击你配置的反代的配置文件然后把proxy_set_header Host $http_host;这个添加进去,看了看,我顺便删除了proxy_set_header Host $host;这句,因为感觉有点重复了,不知道应不应该删,反正我删了暂时好像没问题。

@Winyer
Copy link
Author

Winyer commented Apr 17, 2023

又去试了一次,如果不删除会出现400错误,访问失败,所以确实要删掉

@Winyer
Copy link
Author

Winyer commented Apr 17, 2023

又去试了一次,如果不删除会出现400错误,访问失败,所以确实要删掉

再记录一个,这样反代后代理的速度会很慢,差不多只有直接访问5244端口时代理速度的三十分之一左右.....我也不知道是为什么,还是哪没做对?有知道的帮忙解答下吧

@shadowofgost
Copy link

又去试了一次,如果不删除会出现400错误,访问失败,所以确实要删掉

再记录一个,这样反代后代理的速度会很慢,差不多只有直接访问5244端口时代理速度的三十分之一左右.....我也不知道是为什么,还是哪没做对?有知道的帮忙解答下吧

反代用的是什么?docker,nginx还是啥?还有反代的具体配置,nginx要开压缩,文件之类,去查看nginx配置的博客和论文,还有反代的通道大小等。并且你说的慢是什么慢呢?有没有使用中继

@Winyer
Copy link
Author

Winyer commented Apr 18, 2023

又去试了一次,如果不删除会出现400错误,访问失败,所以确实要删掉

再记录一个,这样反代后代理的速度会很慢,差不多只有直接访问5244端口时代理速度的三十分之一左右.....我也不知道是为什么,还是哪没做对?有知道的帮忙解答下吧

反代用的是什么?docker,nginx还是啥?还有反代的具体配置,nginx要开压缩,文件之类,去查看nginx配置的博客和论文,还有反代的通道大小等。并且你说的慢是什么慢呢?有没有使用中继

用的是宝塔里面的,nginx的tengine版本,使用的是默认的配置,开了压缩,通道大小是什么呢,慢是网速的慢,无中继

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants