[GH-ISSUE #1981] 关于映射网站子目录的问题 #1578

Closed
opened 2026-05-05 13:00:00 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @umeoy on GitHub (Sep 14, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1981

我安装了frp在我的树莓派和服务器上并成功启用,但我在配置内网82端口映射到服务器8080端口时,发现了一个问题,当我访问 域名:8080/ng时,网页显示找不到界面
以下为配置文件

frps
[common]
bind_port = 7000
vhost_http_port = 8080

[web]
type = http
local_port = 82
custom_domains = 域名

我想在公网访问树莓派上的 82端口下的ng目录(内网路径http://树莓派IP:82/ng),应该怎样设置?

Originally created by @umeoy on GitHub (Sep 14, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1981 我安装了frp在我的树莓派和服务器上并成功启用,但我在配置内网82端口映射到服务器8080端口时,发现了一个问题,当我访问 域名:8080/ng时,网页显示找不到界面 以下为配置文件 frps [common] bind_port = 7000 vhost_http_port = 8080 [web] type = http local_port = 82 custom_domains = 域名 我想在公网访问树莓派上的 82端口下的ng目录(内网路径http://树莓派IP:82/ng),应该怎样设置?
gitea-mirror 2026-05-05 13:00:00 -06:00
Author
Owner

@blizard863 commented on GitHub (Sep 15, 2020):

你访问服务器的路径 URL 是啥?

<!-- gh-comment-id:692429413 --> @blizard863 commented on GitHub (Sep 15, 2020): 你访问服务器的路径 URL 是啥?
Author
Owner

@rorizhang commented on GitHub (Sep 25, 2020):

你试试最后加一个/试试。

<!-- gh-comment-id:698653561 --> @rorizhang commented on GitHub (Sep 25, 2020): 你试试最后加一个/试试。
Author
Owner

@github-actions[bot] commented on GitHub (Nov 9, 2020):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:723697631 --> @github-actions[bot] commented on GitHub (Nov 9, 2020): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
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#1578
No description provided.