I simply missed the part in your original post saying you were running Apache, that's all.
Still not quite clear as to why you insist on typing www.localhost
and not simply localhost
, though. You also haven't said what the page looks like or what it tells you, yet.
Have you consulted the documentation for Apache to find an answer to your question? I'm not familiar with either Apache or IIS myself.