[GH-ISSUE #1028] 无法访问HTTPS web服务 #815

Closed
opened 2026-05-05 12:31:12 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @qqfbleach on GitHub (Dec 28, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/1028

Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

What version of frp are you using (./frpc -v or ./frps -v)?
0.22.0

What operating system and processor architecture are you using (go env)?
ubuntu

Configures you used:
frps

bind_port = 7000
vhost_https_port = 8888

frpc

[common]
server_addr = x.x.x.x
server_port = 7000

[web]
type = https
local_ip = 127.0.0.1
local_port = 80
subdomain  = hello2

Steps to reproduce the issue:
1.服务器配置https端口,客户端配置https协议
2.使用二级域名https无法访问

Describe the results you received:

浏览器显示:
image

Describe the results you expected:
https能够正常访问

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)

Originally created by @qqfbleach on GitHub (Dec 28, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/1028 Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly. (为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。) Use the commands below to provide key information from your environment: You do NOT have to include this information if this is a FEATURE REQUEST **What version of frp are you using (./frpc -v or ./frps -v)?** 0.22.0 **What operating system and processor architecture are you using (`go env`)?** ubuntu **Configures you used:** frps ``` bind_port = 7000 vhost_https_port = 8888 ``` frpc ``` [common] server_addr = x.x.x.x server_port = 7000 [web] type = https local_ip = 127.0.0.1 local_port = 80 subdomain = hello2 ``` **Steps to reproduce the issue:** 1.服务器配置https端口,客户端配置https协议 2.使用二级域名https无法访问 **Describe the results you received:** 浏览器显示: ![image](https://user-images.githubusercontent.com/3295329/50519578-8caea880-0af6-11e9-9481-473ff9d23024.png) **Describe the results you expected:** https能够正常访问 **Additional information you deem important (e.g. issue happens only occasionally):** **Can you point out what caused this issue (optional)**
Author
Owner

@qqfbleach commented on GitHub (Dec 28, 2018):

本地服务是nginx,http能够正常访问,增加ssl证书(自签名)之后,无法访问。测试使用本地ip地址是能够https正常访问的(在路由器上做端口转发,使用公网ip也能访问),但是使用代理无法打开 从日志上看貌似是证书校验的问题 不知道配置https是否需要注意的地方

<!-- gh-comment-id:450375848 --> @qqfbleach commented on GitHub (Dec 28, 2018): 本地服务是nginx,http能够正常访问,增加ssl证书(自签名)之后,无法访问。测试使用本地ip地址是能够https正常访问的(在路由器上做端口转发,使用公网ip也能访问),但是使用代理无法打开 从日志上看貌似是证书校验的问题 不知道配置https是否需要注意的地方
Author
Owner

@fatedier commented on GitHub (Dec 28, 2018):

https 需要你自己有证书,本地部署的是 https 服务,而不是 http 服务。

<!-- gh-comment-id:450376425 --> @fatedier commented on GitHub (Dec 28, 2018): https 需要你自己有证书,本地部署的是 https 服务,而不是 http 服务。
Author
Owner

@qqfbleach commented on GitHub (Dec 28, 2018):

本地部署的是https服务 我用本地ip能够正常打开https的页面
image

<!-- gh-comment-id:450378567 --> @qqfbleach commented on GitHub (Dec 28, 2018): 本地部署的是https服务 我用本地ip能够正常打开https的页面 ![image](https://user-images.githubusercontent.com/3295329/50520189-dea4fd80-0af9-11e9-9bfa-f0b453a57f60.png)
Author
Owner

@fatedier commented on GitHub (Dec 28, 2018):

换浏览器尝试下,然后贴浏览器显示的具体的错误信息。

<!-- gh-comment-id:450378865 --> @fatedier commented on GitHub (Dec 28, 2018): 换浏览器尝试下,然后贴浏览器显示的具体的错误信息。
Author
Owner

@qqfbleach commented on GitHub (Dec 28, 2018):

不好意思 我本地端口配置错了 。。应该转发8080端口

<!-- gh-comment-id:450379212 --> @qqfbleach commented on GitHub (Dec 28, 2018): 不好意思 我本地端口配置错了 。。应该转发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: github-starred/frp#815
No description provided.