[GH-ISSUE #20] https问题请教 #19

Closed
opened 2026-03-03 11:33:24 +03:00 by kerem · 4 comments
Owner

Originally created by @fengmikaelson on GitHub (Mar 11, 2019).
Original GitHub issue: https://github.com/Finb/Bark/issues/20

服务器上搭了个apache,域名申请了ssl证书,也部署上去了。
现在https访问域名能看到apache test页面
ios的bark上添加http地址能用,提交https就提示服务器无效。。。是哪里操作不对
谢谢这么好的软件、

Originally created by @fengmikaelson on GitHub (Mar 11, 2019). Original GitHub issue: https://github.com/Finb/Bark/issues/20 服务器上搭了个apache,域名申请了ssl证书,也部署上去了。 现在https访问域名能看到apache test页面 ios的bark上添加http地址能用,提交https就提示服务器无效。。。是哪里操作不对 谢谢这么好的软件、
kerem closed this issue 2026-03-03 11:33:24 +03:00
Author
Owner

@Finb commented on GitHub (Mar 12, 2019):

你这成功了一半,https没问题了,下一步是设置 反向代理 把请求转发给bark server。具体配置你可以搜一下 apache 反向代理 ,并不复杂

fengmikaelson notifications@github.com于2019年3月11日 周一23:10写道:

服务器上搭了个apache,域名申请了ssl证书,也部署上去了。
现在https访问域名能看到apache test页面
ios的bark上添加http地址能用,提交https就提示服务器无效。。。是哪里操作不对


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Finb/Bark/issues/20, or mute the thread
https://github.com/notifications/unsubscribe-auth/AGhzWBMXLvPxHZJKSOSm_FEYdQ_MMKmmks5vVnHpgaJpZM4bo1ww
.

<!-- gh-comment-id:471807531 --> @Finb commented on GitHub (Mar 12, 2019): 你这成功了一半,https没问题了,下一步是设置 反向代理 把请求转发给bark server。具体配置你可以搜一下 apache 反向代理 ,并不复杂 fengmikaelson <notifications@github.com>于2019年3月11日 周一23:10写道: > 服务器上搭了个apache,域名申请了ssl证书,也部署上去了。 > 现在https访问域名能看到apache test页面 > ios的bark上添加http地址能用,提交https就提示服务器无效。。。是哪里操作不对 > > — > You are receiving this because you are subscribed to this thread. > Reply to this email directly, view it on GitHub > <https://github.com/Finb/Bark/issues/20>, or mute the thread > <https://github.com/notifications/unsubscribe-auth/AGhzWBMXLvPxHZJKSOSm_FEYdQ_MMKmmks5vVnHpgaJpZM4bo1ww> > . >
Author
Owner

@fengmikaelson commented on GitHub (Mar 12, 2019):

你这成功了一半,https没问题了,下一步是设置 反向代理 把请求转发给bark server。具体配置你可以搜一下 apache 反向代理 ,并不复杂 fengmikaelson notifications@github.com于2019年3月11日 周一23:10写道:

服务器上搭了个apache,域名申请了ssl证书,也部署上去了。 现在https访问域名能看到apache test页面 ios的bark上添加http地址能用,提交https就提示服务器无效。。。是哪里操作不对 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#20>, or mute the thread https://github.com/notifications/unsubscribe-auth/AGhzWBMXLvPxHZJKSOSm_FEYdQ_MMKmmks5vVnHpgaJpZM4bo1ww .

谢谢提示。但是我设置了443请求全部反向代理到8080端口,还是不行。我尝试着将反向代理转至google,看了下有生效,访问我的域名能跳转到google。但是设置为8080,bark还是认不到。不知道是哪里还有问题。。
我在virtualhost里添加了
SSLProxyEngine on
ProxyRequests off
ProxyPass / http://x.x.x.:8080
ProxyPassReverse / http://x.x.x.x:8080

<!-- gh-comment-id:471840506 --> @fengmikaelson commented on GitHub (Mar 12, 2019): > 你这成功了一半,https没问题了,下一步是设置 反向代理 把请求转发给bark server。具体配置你可以搜一下 apache 反向代理 ,并不复杂 fengmikaelson <notifications@github.com>于2019年3月11日 周一23:10写道: > […](#) > 服务器上搭了个apache,域名申请了ssl证书,也部署上去了。 现在https访问域名能看到apache test页面 ios的bark上添加http地址能用,提交https就提示服务器无效。。。是哪里操作不对 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#20>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AGhzWBMXLvPxHZJKSOSm_FEYdQ_MMKmmks5vVnHpgaJpZM4bo1ww> . 谢谢提示。但是我设置了443请求全部反向代理到8080端口,还是不行。我尝试着将反向代理转至google,看了下有生效,访问我的域名能跳转到google。但是设置为8080,bark还是认不到。不知道是哪里还有问题。。 我在virtualhost里添加了 SSLProxyEngine on ProxyRequests off ProxyPass / http://x.x.x.:8080 ProxyPassReverse / http://x.x.x.x:8080
Author
Owner

@Finb commented on GitHub (Mar 12, 2019):

你先测试下 bark 是否监听的是 8080

curl http://127.0.0.1:8080/ping 
//正常将返回 code 200 

确保端口号正确,服务运行正常, 再设置

...
ProxyPass / http://127.0.0.1:8080/
...

都完成之后, 测试服务器是否正常响应,之后再去客户端修改服务器地址

curl https://x.x.x.x/ping 

还不行的话,你或者需要找一个教程重新开始一遍
bark仅仅是一个http服务,不会对apache有任何影响,如果apache不能反代,则只可能是apache没配置好。

<!-- gh-comment-id:471844293 --> @Finb commented on GitHub (Mar 12, 2019): 你先测试下 bark 是否监听的是 8080 ``` curl http://127.0.0.1:8080/ping //正常将返回 code 200 ``` 确保端口号正确,服务运行正常, 再设置 ``` ... ProxyPass / http://127.0.0.1:8080/ ... ``` 都完成之后, 测试服务器是否正常响应,之后再去客户端修改服务器地址 ``` curl https://x.x.x.x/ping ``` 还不行的话,你或者需要找一个教程重新开始一遍 bark仅仅是一个http服务,不会对apache有任何影响,如果apache不能反代,则只可能是apache没配置好。
Author
Owner

@fengmikaelson commented on GitHub (Mar 12, 2019):

我去。。。终于发现问题所在了。。。
ProxyPass / http://127.0.0.1:8080/
最后漏了一个“/”
真是醉了,折腾了一早上。
谢谢大佬耐心的指导。
真心太好用了你开发的这个工具。感激。

<!-- gh-comment-id:471848917 --> @fengmikaelson commented on GitHub (Mar 12, 2019): 我去。。。终于发现问题所在了。。。 ProxyPass / http://127.0.0.1:8080/ 最后漏了一个“/” 真是醉了,折腾了一早上。 谢谢大佬耐心的指导。 真心太好用了你开发的这个工具。感激。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Bark#19
No description provided.