Virtualhosts - best way of dealing with it?
- by axqe56
I'm competent at the basics of Apache, PHP and virtual hosting but have a question about virtual hosting.
As far as I'm aware, HOSTS files can only be in one of the following locations:
C:/Windows/system32/drivers/etc (varies in older installs, I believe)
I don't think it can be put elsewhere for use with Apache, simply for virtual hosts, and the main HOSTS file for blocking sites etc.
I heard about PAC files on Uniform Server's website (http://wiki.uniformserver.com/index.php/Virtual_Hosting:_PAC) but they're browser-specific though, aren't they?
What's the best way to deal with virtualhosts, other than HOSTS file?
My server isn't currently open to the internet yet, but if it is, what's the best way to resolve DNS for my virtualhost domains if it were to become forward-facing (i.e open to the internet)?