[GH-ISSUE #856] frp无法映射内网的owncloud到443端口 #676

Closed
opened 2026-05-05 12:26:18 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @kenshinji on GitHub (Jul 18, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/856

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)?
both are 0.20.0

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

Configures you used:
frpc.ini

[common]
server_addr = <SERVER_IP>
server_port = 7000


[web02]
type = https
local_ip = 127.0.0.1
local_port = 443
custom_domains = <SERVER_IP>

frps.ini

[common]
bind_port = 7000
vhost_https_port = 443

Steps to reproduce the issue:

  1. frpc的机器上跑了个owncloud,需要把443端口暴露到外网, 用命令 ./frpc -c frpc.ini
  2. digital ocean的vps上跑了frps,用的命令 ./frps -c frps.ini
  3. 通过 https://<SERVER_IP> 访问,结果server的后台报错如下
screen shot 2018-07-18 at 9 03 07 am
Originally created by @kenshinji on GitHub (Jul 18, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/856 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)?** both are `0.20.0` **What operating system and processor architecture are you using (`go env`)?** not intalled **Configures you used:** frpc.ini ``` [common] server_addr = <SERVER_IP> server_port = 7000 [web02] type = https local_ip = 127.0.0.1 local_port = 443 custom_domains = <SERVER_IP> ``` frps.ini ``` [common] bind_port = 7000 vhost_https_port = 443 ``` **Steps to reproduce the issue:** 1. frpc的机器上跑了个owncloud,需要把443端口暴露到外网, 用命令 `./frpc -c frpc.ini` 2. digital ocean的vps上跑了frps,用的命令 `./frps -c frps.ini` 3. 通过 https://<SERVER_IP> 访问,结果server的后台报错如下 <img width="750" alt="screen shot 2018-07-18 at 9 03 07 am" src="https://user-images.githubusercontent.com/1403893/42853505-742a100a-8a69-11e8-9505-97057f038a30.png">
Author
Owner

@ChenWenBrian commented on GitHub (Jul 20, 2018):

FRPS是用root账户跑的嘛?如果不是,更换root账号试试,1024以下端口需要管理员权限,或者单独授权也行

<!-- gh-comment-id:406525109 --> @ChenWenBrian commented on GitHub (Jul 20, 2018): FRPS是用root账户跑的嘛?如果不是,更换root账号试试,1024以下端口需要管理员权限,或者单独授权也行
Author
Owner

@fatedier commented on GitHub (Jul 30, 2018):

如果对 https 不了解,不能自己解决相关的问题,就直接用 http 吧。

<!-- gh-comment-id:408846301 --> @fatedier commented on GitHub (Jul 30, 2018): 如果对 https 不了解,不能自己解决相关的问题,就直接用 http 吧。
Author
Owner

@kenshinji commented on GitHub (Jul 30, 2018):

@ChenWenBrian sudo跑的

<!-- gh-comment-id:408860910 --> @kenshinji commented on GitHub (Jul 30, 2018): @ChenWenBrian `sudo`跑的
Author
Owner

@ChenWenBrian commented on GitHub (Jul 31, 2018):

那就应该跟权限无关了。你试试把custom_domains = <SERVER_IP>改成用域名呗,弄个自定义的域名修改下本地host,或者弄个免费的二级域名试试,用域名还可以顺道去let's encrypt申请个免费的证书

<!-- gh-comment-id:409091892 --> @ChenWenBrian commented on GitHub (Jul 31, 2018): 那就应该跟权限无关了。你`试试把custom_domains = <SERVER_IP>改成用域名`呗,弄个自定义的域名修改下本地host,或者弄个免费的二级域名试试,用域名还可以顺道去let's encrypt申请个免费的证书
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#676
No description provided.