Can Apache use the hosts file to resolve names to ip number?

Can Apache use the hosts file to resolve names to ip number?

Post by A » Fri, 14 Oct 2005 03:02:36


Hi,

Can Apache use the hosts file to resolve names to ip number? Or do I
need to use the VirtualHost directive?

I'm running Apache 2.0 on Windows 2000 Server to serve about 200+
gigabytes of static content in university intranets in developing
countries. Most schools have no Internet or very limited bandwidth.

In addition, if there are any Apache Proxy and Rewrite gurus out there
who would be able to volunteer their expertise, The WiderNet Project's
digital library needs your help. If you are interested contact me at my
e-mail below.

Thanks,

Peter Yohe
The WiderNet Project
http://www.yqcomputer.com/
pyohe(AT)widernet(DOT)org
 
 
 

Can Apache use the hosts file to resolve names to ip number?

Post by Phil Frisb » Fri, 14 Oct 2005 03:54:54


Apache server would never need to resolve names; that is what a client does.

So, the answer is 'yes, you need to use VirtualHosts in your config file'.

--
Phil Frisbie, Jr.
Hawk Software
http://www.yqcomputer.com/