[GH-ISSUE #922] It seems that I can not reverse proxy the frp's web dashboard onto a subdir through Nginx #732

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

Originally created by @NitroCao on GitHub (Sep 16, 2018).
Original GitHub issue: https://github.com/fatedier/frp/issues/922

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

What operating system and processor architecture are you using (go env)?
CentOS Linux release 7.5.1804 (Core) with 3.10.0-693.el7.x86_64 kernel release.

Configures you used:
Follows the configuration of frps:

[common]
bind_port = 7000

dashboard_port = 7500
dashboard_user = xxx
dashboard_pwd = xxx

vhost_https_port = 8081

Follows the key configuration of nginx:

location /frps/ {
    proxy_pass    http://127.0.0.1:7500/;
}

Steps to reproduce the issue:

Describe the results you received:
When I open https://mysite.com/frps/, it returns 404 for me and it redirects to https://mysite.com/static/.

Describe the results you expected:
Access frp's web dashboard successfully through Nginx's reverse proxy.

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

Can you point out what caused this issue (optional)
Seems that the frp's web dashboard doesn't support deploying to subdir. Adding a config option to support this feature would be a nice job.

Originally created by @NitroCao on GitHub (Sep 16, 2018). Original GitHub issue: https://github.com/fatedier/frp/issues/922 **What version of frp are you using (./frpc -v or ./frps -v)?** frps `v0.20.0`. **What operating system and processor architecture are you using (`go env`)?** `CentOS Linux release 7.5.1804 (Core)` with `3.10.0-693.el7.x86_64` kernel release. **Configures you used:** Follows the configuration of frps: ``` [common] bind_port = 7000 dashboard_port = 7500 dashboard_user = xxx dashboard_pwd = xxx vhost_https_port = 8081 ``` Follows the key configuration of nginx: ``` location /frps/ { proxy_pass http://127.0.0.1:7500/; } ``` **Steps to reproduce the issue:** **Describe the results you received:** When I open `https://mysite.com/frps/`, it returns `404` for me and it redirects to `https://mysite.com/static/`. **Describe the results you expected:** Access frp's web dashboard successfully through Nginx's reverse proxy. **Additional information you deem important (e.g. issue happens only occasionally):** **Can you point out what caused this issue (optional)** Seems that the frp's web dashboard doesn't support deploying to subdir. Adding a config option to support this feature would be a nice job.
Author
Owner

@shellus commented on GitHub (Oct 9, 2018):

The frps dashboard is standard http, so your problem is not frp, but about the nginx directory rewrite.

<!-- gh-comment-id:428050191 --> @shellus commented on GitHub (Oct 9, 2018): The frps dashboard is standard http, so your problem is not frp, but about the nginx directory rewrite.
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#732
No description provided.