Virtualhosts - best way of dealing with it?

Posted by axqe56 on Server Fault See other posts from Server Fault or by axqe56
Published on 2011-03-15T15:12:43Z Indexed on 2011/03/15 16:12 UTC
Read the original article Hit count: 234

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)?

© Server Fault or respective owner

Related posts about apache

Related posts about Windows