Hello, is that possible to create a reverse proxy with a connection DNS record?
For example, I have a domain myapp.com
and need to add a worker and route the worker to subdomain proxy.myapp.com
. when I route the worker to proxy.myapp.com
it’s working.
But I have a problem when I am adding DNS record CNAME
in another domain, it’s not working, it doesn’t point me to the worker, cause it points proxy.myapp.com
to A
record.
For example what I would like to solve:
app.domain1.com
CNAME
proxy.myapp.com
→ the worker
app.domain2.com
CNAME
proxy.myapp.com
→ the worker
app.domain3.com
CNAME
proxy.myapp.com
→ the worker
etc.
it’s not working cause it points me to A record:
app.domain1.com
CNAME
proxy.myapp.com
→ A record of proxy.myapp.com
.
How is it possible to solve or is it possible?