How to test VirtualHost w/o DNS?
What I am wanting to do it test the multiple sites before changing over the DNS stuff from the old host.
Thanks!
5 Replies
In other words, all that matters is what hostname the client thinks they're accessing.
@Guspaz:
Just create entries in your HOSTS file (which should work for either Linux or Windows, I'd presume also OS X) for the domains. The server doesn't care anything about DNS, just what hostname the web browser passes in the "Host" header.
In other words, all that matters is what hostname the client thinks they're accessing.
Thanks for the reply! Your recommendation would only work locally though, right? What about testing on Linode?
BTW, there's no need to quote someone's entire reply if you're just replying to them.
> Host: foo.example.com
This is the necessary magic to make virtual hosts work, without putting them in DNS just yet. Your Linode's DNS configuration shouldn't matter.