Any way to use host hack to specific environment?

Is there any way, while using a host hack to XDN IP, to specify environment which host hack will use? We’ve tried to override host and :authority headers but it didn’t work.

When the XDN receives a request, it looks for an environment configured with the domain provided in the host header to serve the response. Domains are configured from environment view:

Given the example above, if you want to type “mysite.com” into your browser and have this environment serve the response, you should put an entry like the following into your /etc/hosts file:

(XDN IP here)	mysite.com

You can get the XDN IP addresses for your site via the “Networking” tab in the environment view. Each site may have different IP addresses, so make sure you copy yours from that view. You can use any one of them for host hacking.

2 Likes