[GH-ISSUE #3356] [Feature Request] Can I use Caddy to proxy server_port number? #2684

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

Originally created by @visualwind on GitHub (Mar 12, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3356

Describe the feature request

I want to use sub domain to redirct server_port. I set client's server_port = 443, and use caddy on server to redirct requested 443 to bind_port = 7000,
I failed many times, please help!

frps.ini
[common] bind_addr = :: bind_port = 7000 token = abc .......

frpc.ini
[common] server_addr = linkfrp.abc.com server_port = 443 token = abc .......

caddy
https://linkfrp.abc.com { respond "hello, world!" }

or
[common] server_addr = linkfrp.abc.com server_port = 7000 #locations = /ai token = abc tls_enable = true protocol = websocket

https:// linkfrp.abc.com { @frp_websocket { header Connection Upgrade header Upgrade websocket } reverse_proxy @frp_websocket 127.0.0.1:7000 }

All failed

Describe alternatives you've considered

No response

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @visualwind on GitHub (Mar 12, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3356 ### Describe the feature request I want to use sub domain to redirct server_port. I set client's server_port = 443, and use caddy on server to redirct requested 443 to bind_port = 7000, I failed many times, please help! frps.ini ` [common] bind_addr = :: bind_port = 7000 token = abc ....... ` frpc.ini `[common] server_addr = linkfrp.abc.com server_port = 443 token = abc ....... ` caddy `https://linkfrp.abc.com { respond "hello, world!" }` or `[common] server_addr = linkfrp.abc.com server_port = 7000 #locations = /ai token = abc tls_enable = true protocol = websocket ` `https:// linkfrp.abc.com { @frp_websocket { header Connection Upgrade header Upgrade websocket } reverse_proxy @frp_websocket 127.0.0.1:7000 }` All failed ### Describe alternatives you've considered _No response_ ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:43:51 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Apr 12, 2023):

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

<!-- gh-comment-id:1504333760 --> @github-actions[bot] commented on GitHub (Apr 12, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d 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#2684
No description provided.