[GH-ISSUE #2453] How to work with caddy? #1947

Closed
opened 2026-05-05 13:15:11 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @qiuhaotc on GitHub (Jun 21, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2453

My configuration:

frps.ini

[common]
bind_port = 7000
vhost_http_port = 7001
tcp_mux = true
token = 123

frpc.ini

[common]
server_addr = remote_ip
server_port = 7000
token = 123

[web]
type = http
local_ip = 127.0.0.1
local_port = 8080
remote_port = 7001
custom_domains = remote_ip

caddyfile

subdomain.domain.com {
    gzip
    timeouts none
    proxy / http://localhost:7001 {
        transparent
    }
}

problem

I can use http://remote_ip:7001 to view that site, but when I try to use https://subdomain.domain.com to view the site, it always said:

The page you requested was not found.
Sorry, the page you are looking for is currently unavailable.
Please try again later.

The server is powered by frp.

Faithfully yours, frp.

Can someone give some advice on that, how to solve that problem?

Originally created by @qiuhaotc on GitHub (Jun 21, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2453 My configuration: # frps.ini ```ini [common] bind_port = 7000 vhost_http_port = 7001 tcp_mux = true token = 123 ``` # frpc.ini ```ini [common] server_addr = remote_ip server_port = 7000 token = 123 [web] type = http local_ip = 127.0.0.1 local_port = 8080 remote_port = 7001 custom_domains = remote_ip ``` # caddyfile ``` subdomain.domain.com { gzip timeouts none proxy / http://localhost:7001 { transparent } } ``` # problem I can use http://remote_ip:7001 to view that site, but when I try to use https://subdomain.domain.com to view the site, it always said: ``` The page you requested was not found. Sorry, the page you are looking for is currently unavailable. Please try again later. The server is powered by frp. Faithfully yours, frp. ``` Can someone give some advice on that, how to solve that problem?
Author
Owner

@qiuhaotc commented on GitHub (Jun 21, 2021):

Error log in server

2021/06/21 15:16:37 [W] [http.go:92] do http proxy request error: no such domain: subdomain.domain.com / 
<!-- gh-comment-id:865134152 --> @qiuhaotc commented on GitHub (Jun 21, 2021): Error log in server ```log 2021/06/21 15:16:37 [W] [http.go:92] do http proxy request error: no such domain: subdomain.domain.com / ```
Author
Owner

@fatedier commented on GitHub (Jun 22, 2021):

custom_domains = remote_ip -> custom_domains = subdomain.domain.com

<!-- gh-comment-id:865484114 --> @fatedier commented on GitHub (Jun 22, 2021): `custom_domains = remote_ip` -> `custom_domains = subdomain.domain.com`
Author
Owner

@qiuhaotc commented on GitHub (Jun 22, 2021):

custom_domains = remote_ip -> custom_domains = subdomain.domain.com

Thanks for the information, I will give it a try

<!-- gh-comment-id:865485800 --> @qiuhaotc commented on GitHub (Jun 22, 2021): > `custom_domains = remote_ip` -> `custom_domains = subdomain.domain.com` Thanks for the information, I will give it a try
Author
Owner

@qiuhaotc commented on GitHub (Jun 22, 2021):

Its working, thanks a lot!!

<!-- gh-comment-id:865842811 --> @qiuhaotc commented on GitHub (Jun 22, 2021): Its working, thanks a lot!!
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#1947
No description provided.