[GH-ISSUE #598] frp http穿透 端口自行发生变化 #467

Closed
opened 2026-05-05 12:18:11 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @ruaoj on GitHub (Jan 11, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/598

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)?
frp0.14.1
server: linux amd 64bit
client:linux 386
What operating system and processor architecture are you using (go env)?
server:centos7 linux amd 64bit vps
client:dsm5.2 群晖nas

Configures you used:
server config
[common]
bind_port = 7000
vhost_https_port = 9878
vhost_http_port = 8789
dashboard_port = 7500

client config
[common]
server_addr = ...
server_port = 7000

[http]
type = http
local_ip = 127.0.0.1
local_port = 8789
remote_port = 8789
custom_domains = ...

Steps to reproduce the issue:
1.在vps搭建frps,在群晖搭了一个wordpress并运行frpc,地址栏内输入局域网IP:8789/wordpress 这样可以成功访问到站点
2.frp穿透已经成功,dashboard可以看到8789端口online,并且访问 vps地址:8789 可以打开群晖的webstation页面
3.但是访问 vps 地址:8789/wordpress时 会自动变成 vps地址:8787/wordpress 并无法访问

Describe the results you received:
为什么端口号会变呢?

Describe the results you expected:
怎么才能实现用 公网IP:端口号/wordpress 这种形式的地址访问到站点呢?

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

因为没有域名,所以动态域名我直接填的是vps 的IP地址

Can you point out what caused this issue (optional)
是端口后面就不能加/子目录 这种形式了吗?

Originally created by @ruaoj on GitHub (Jan 11, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/598 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)?** frp0.14.1 server: linux amd 64bit client:linux 386 **What operating system and processor architecture are you using (`go env`)?** server:centos7 linux amd 64bit vps client:dsm5.2 群晖nas **Configures you used:** server config [common] bind_port = 7000 vhost_https_port = 9878 vhost_http_port = 8789 dashboard_port = 7500 client config [common] server_addr = *.*.*.* server_port = 7000 [http] type = http local_ip = 127.0.0.1 local_port = 8789 remote_port = 8789 custom_domains = *.*.*.* **Steps to reproduce the issue:** 1.在vps搭建frps,在群晖搭了一个wordpress并运行frpc,地址栏内输入局域网IP:8789/wordpress 这样可以成功访问到站点 2.frp穿透已经成功,dashboard可以看到8789端口online,并且访问 vps地址:8789 可以打开群晖的webstation页面 3.但是访问 vps 地址:8789/wordpress时 会自动变成 vps地址:8787/wordpress 并无法访问 **Describe the results you received:** 为什么端口号会变呢? **Describe the results you expected:** 怎么才能实现用 公网IP:端口号/wordpress 这种形式的地址访问到站点呢? **Additional information you deem important (e.g. issue happens only occasionally):** 因为没有域名,所以动态域名我直接填的是vps 的IP地址 **Can you point out what caused this issue (optional)** 是端口后面就不能加/子目录 这种形式了吗?
Author
Owner

@ruaoj commented on GitHub (Jan 11, 2018):

= = 好吧 我把所有的东西都改成了8787,可以了,不是很明白

<!-- gh-comment-id:356842931 --> @ruaoj commented on GitHub (Jan 11, 2018): = = 好吧 我把所有的东西都改成了8787,可以了,不是很明白
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#467
No description provided.