mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #671] nginx https转发frps #528
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#528
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @wxlg1117 on GitHub (Mar 21, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/671
What version of frp are you using (./frpc -v or ./frps -v)?
0.16
What operating system and processor architecture are you using (
go env)?centos 7.4
Configures you used:
Steps to reproduce the issue:
一,启动frps;
frps.ini
bind_port = 7000
vhost_http_port = 7080
vhost_https_port = 7443
subdomain_host = testtest.com
二,nginx的配置 nginx.ini;
三,启动frpc,启动本机8009的https服务;
[test1]
type = https
local_ip = 127.0.0.1
local_port = 8009
subdomain = test1
Describe the results you received:
访问
https://test1.testtest.com:7443正常访问
https://test1.testtest.com错误,日志输出Additional information you deem important (e.g. issue happens only occasionally):
虽然可以按照(https://github.com/fatedier/frp/issues/610)
写死nginx.ini为:
这样
https://test1.testtest.com:7443和https://test1.testtest.com也都能正常,但这样frps配置了subdomain_host且frpc用subdomain 的话就很不方便了.各大婶有已经解决了的么?
@fatedier @312102021
update20180322:已经在某大神的指点下解决.
@rockts commented on GitHub (May 14, 2018):
你用的免费的ssl证书,免费的证书应该不能绑泛域名,类似*.baidu.com ,一个免费证书只能绑一个一级域名或者一个二级域名,如果你有a.baidu.com和b.baidu.com的话,应该需要申请两个证书
@levenkk commented on GitHub (Jul 3, 2018):
@wxlg1117 请问您怎么解决的?
@xiasf commented on GitHub (Aug 8, 2018):
同问您怎么解决的?
@levenkk commented on GitHub (Aug 9, 2018):
折腾了一下,https转发算是能正常用了,证书用的是免费的let's encrypt,支持泛域名。
可访问形如 https://xxxxx.frp.yourdomain.com 的域名
nginx.conf
在本地映射域名解析
/etc/dnsmasq.conf
frps.ini
@whdlut commented on GitHub (Oct 14, 2018):
@wxlg1117,您好,想向您请教一下,请问您这个能够正常工作,是不是必须要云端服务器(具有公网IP,运行frps和nginx)和内网的服务器(运行frpc)具有相同的let's encrypt证书(fullchain.pem和privkey.pem),才可以?我个人觉得应该是这样,那么证书是不是要从云端服务器直接拷贝到内网服务器,严格说来,是不是会有潜在的网络安全风险,谢谢!
@rockts commented on GitHub (Oct 15, 2018):
1、服务器不需要运行frpc,frpc是运行在客户端的
2、SSL安装都是服务器端就可以,客户端不需要安装