Hi, I have installed Apache 2.2 recently and I facing problem in running html pages. When I check for http://localhost/ it display "It Works" but when I try to run a small html page in my htdocs Eg: hello.html using "http://localhost/hello.html" it throws an error saying "Oops page appears to be broken. DNS Error server could not be found". Please help
Check your apache configuration to ensure that virtual hosts are configured correctly and that the document root is in /htdocs.
Try accessing the page through the IP itself, http://127.0.0.1/hello.html to see if that works first. If it loads then you know Apache is serving pages.
I have tried changing the document root directory and made the same in conf file. It didn't work at first but on clearing the cache it's working good. Thank you Ray and Ironclad