Disclaimer: I know it seems a bit unusual.
We work in an industry where networks are very restricted. All of our customers installations require us to deploy an on-premise server which runs in a closed network (it cannot be reached from the outside). This server is assigned a local DNS but it needs to be accessed from a web browser running within the private network, using SSL as our app is served with HTTPS.
We bypass this problem by assigning a public DNS to the local DNS, and providing the right SSL certificates on the on-premise server.
For instance:
Local DNS: server.customer.local
Public DNS: customerid.connectors.mycompany.com => CNAME to server.customer.local
The on-premise server has a certificate for *.connectors.mycompany.com, and it all works fine.
My question is whether it would be possible to do the exact same thing using a web server rather than all these DNS. The browser would target our external web server, which would "redirect" to the local server, all in a SSL context.
Any help very appreciated!
question from:
https://stackoverflow.com/questions/66053235/is-it-possible-to-mimic-a-cname-with-a-http-server 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…