Tutorial :Send Host header when accessing IP address in Firefox



Question:

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?


Solution:1

I guess you could use the TamperData extension to manually add it each time.


Solution:2

You can add the host name and ip-address to your hosts file.


Solution:3

Have you tried the Modify Headers Firefox extension?


Solution:4

If you are creating a site and wish to map the host header to an IP (perhaps your local dev box) for testing purposes, then you should consider editing the hosts file instead.


Solution:5

Just setup an entry in the hosts file. Always worked for me :)


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »