How to add http host header in URL?

I have web app deployed in K8 in aws & configured LoadBalancer to call the same from internet. In the Postman I call like ,

GET https://myteams.myorg.net/config Headers: Host doom.myteams.myorg.net I can convert as corresponding http request as below

GET /config HTTP/1.1 Host: myteams.myorg.net Host: doom.myteams.myorg.net

But I want to call the same from browser URL ? I tried several ways but can't successfully include a http header in the URL tried - https://myteams.myorg.net/config/doom.myteams.myorg.net but the "/config/doom.myteams.myorg.net" is being treated as params.


You need to add a subdomain doom.myteams.example.net to your DNS, which points to the IP address of your server.

After that, opening https://doom.myteams.example.net will get your request to the correct virtual host.

If you want this to be available for one computer only, you can edit /etc/hosts (*nix) or C:\Windows\System32\drivers\etc\hosts (Windows) and add the hostname + ip address in the file.