This isn't really a programming question but more about programming and testing tools.
Is there a way to get Firefox to send the header
Host: mydomain.com
when accessing a page at
http://ip.address.goes.here/
so that Apache can route it to the correct VirtualHost?
Chrome, Firefox, and Safari Windows: Hold down CTRL + SHIFT and press the letter i. You could also right-click the page and select Inspect from the menu.
The Host request header specifies the host and port number of the server to which the request is being sent. If no port is included, the default port for the service requested is implied (e.g., 443 for an HTTPS URL, and 80 for an HTTP URL). A Host header field must be sent in all HTTP/1.1 request messages.
If the URL contains an IP address, the Host header should contain the same address. If the URL contains a hostname, the Host header must contain the same name.
You can add the host name and ip-address to your hosts file.
Have you tried the Modify Headers Firefox extension?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With