easyway to create a proxy redirect to from subdomain with apache
apt update
apt install golang-go -y
mkdir ~/go
export GOPATH=~/go
go get -u github.com/spf13/cobra/cobra
go get -u -v -d github.com/martijn1279/subdomain
cd $GOPATH/src/github.com/martijn1279/subdomain
go build
./subdomain add test.com subdomain http://localhost.com/