Modifying Headers for testing Virtual Hosting

While working on a website hosted on lighty's virtual hosting environment I realized I wanted a natural way to test the site before pointing the DNS over. If you're sharing one IP for multiple sites then this tip is useful. It uses a Firefox add-on.

Get the "Modify Headers" Firefox add-on here.

Once installed go to Tools -> Modify Headers

  • Action -> Modify

  • Name -> Host

  • Value -> Domain you want to "spoof"

See a list of other headers you can play with here.

No comments: