What version of frp are you using (./frpc -v or ./frps -v)?
0.24.1
What operating system and processor architecture are you using (go env)?
Linux
Configures you used:
N/A
Steps to reproduce the issue:
Describe the results you received:

Describe the results you expected:
I would like to modify this default error page into own designed 404 error page.
(Example: https://blog.hubspot.com/blog/tabid/6307/bid/33766/10-clever-website-error-messages-from-creative-companies.aspx)
How could I achieve this?
Thanks.
Additional information you deem important (e.g. issue happens only occasionally):
N/A
Can you point out what caused this issue (optional)
N/A
github.com/fatedier/frp/utils/vhost/resource.go
github.com/fatedier/frp/utils/vhost/resource.go
Thanks for pointing out the location of this error page. I will modify it here.
Anyway, how could I recompile this latest source code with modified resource.go into linux executable file frps?
This is my first time dealing with Go source codes.
Thanks.
git clone https://github.com/fatedier/frp.git
# edit resource.go
# cat Makefile
make frps
@lou-lan,
I faced following error when running make frps, as per screenshot below:
Error Logs:
[root@system frp]# make frps
go build -o bin/frps ./cmd/frps
go: finding github.com/fatedier/kcp-go v0.0.0-20171023144637-cd167d2f15f4
go: finding github.com/hashicorp/yamux v0.0.0-20180314200745-2658be15c5f0
go: github.com/fatedier/[email protected]: unknown revision cd167d2f15f4
go: github.com/hashicorp/[email protected]: unknown revision 2658be15c5f0
go: error loading module requirements
make: *** [frps] Error 1
FYI. I used commit cbf9c73 (Version: 0.24.1) to compile this frps.
Could advise on this?
Thanks.
# step1
# install go
go env
cd $GOPATH
mkdir -p src/github.com/fatedier
git clone https://github.com/fatedier/frp.git
# step2
# edit resource.go
# make frps or make build
make build
@jerrychong25 Try the latest version.
@lou-lan and @fatedier,
I checked out latest version 0.25.3 and recompile using make frps.
And it is running without any issues now.
Build Logs:
[root@exabytes-16713680 frp]# make frps
go build -o bin/frps ./cmd/frps
go: finding github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d
go: finding github.com/fatedier/kcp-go v2.0.4-0.20190317085623-2063a803e6fe+incompatible
go: finding github.com/klauspost/cpuid v1.2.0
go: finding github.com/klauspost/reedsolomon v1.9.1
go: downloading github.com/spf13/cobra v0.0.3
go: downloading github.com/fatedier/golib v0.0.0-20181107124048-ff8cd814b049
go: downloading github.com/rakyll/statik v0.1.1
go: downloading github.com/fatedier/beego v0.0.0-20171024143340-6c6a4f5bd5eb
go: downloading github.com/gorilla/mux v1.6.2
go: downloading github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d
go: extracting github.com/rakyll/statik v0.1.1
go: extracting github.com/fatedier/golib v0.0.0-20181107124048-ff8cd814b049
go: downloading github.com/vaughan0/go-ini v0.0.0-20130923145212-a98ad7ee00ec
go: downloading golang.org/x/crypto v0.0.0-20180505025534-4ec37c66abab
go: downloading golang.org/x/net v0.0.0-20180524181706-dfa909b99c79
go: downloading github.com/fatedier/kcp-go v2.0.4-0.20190317085623-2063a803e6fe+incompatible
go: downloading github.com/golang/snappy v0.0.0-20170215233205-553a64147049
go: extracting github.com/hashicorp/yamux v0.0.0-20181012175058-2f1d1f20f75d
go: extracting github.com/gorilla/mux v1.6.2
go: extracting github.com/spf13/cobra v0.0.3
go: downloading github.com/spf13/pflag v1.0.1
go: extracting github.com/vaughan0/go-ini v0.0.0-20130923145212-a98ad7ee00ec
go: extracting github.com/fatedier/kcp-go v2.0.4-0.20190317085623-2063a803e6fe+incompatible
go: downloading github.com/templexxx/xor v0.0.0-20170926022130-0af8e873c554
go: downloading github.com/pkg/errors v0.8.0
go: extracting github.com/golang/snappy v0.0.0-20170215233205-553a64147049
go: downloading github.com/klauspost/reedsolomon v1.9.1
go: extracting github.com/fatedier/beego v0.0.0-20171024143340-6c6a4f5bd5eb
go: downloading github.com/tjfoc/gmsm v0.0.0-20171124023159-98aa888b79d8
go: extracting github.com/templexxx/xor v0.0.0-20170926022130-0af8e873c554
go: extracting github.com/spf13/pflag v1.0.1
go: extracting github.com/pkg/errors v0.8.0
go: extracting github.com/tjfoc/gmsm v0.0.0-20171124023159-98aa888b79d8
go: extracting github.com/klauspost/reedsolomon v1.9.1
go: extracting golang.org/x/crypto v0.0.0-20180505025534-4ec37c66abab
go: downloading github.com/klauspost/cpuid v1.2.0
go: extracting golang.org/x/net v0.0.0-20180524181706-dfa909b99c79
go: extracting github.com/klauspost/cpuid v1.2.0
Thanks for the great help =)
Most helpful comment