Centos cPanel server - Apache/PHP.
Why is this happening? Can I can change the server configuration to guarantee regular users don't get this error? It is a production server for an e-commerce website and this error might lose us money.
I type "example.com" into the address bar and am "redirected" to "example.com/cgi-sys/defaultwebpage.cgi" which displays generic information about cPanel and Apache. It occurs in Google Chrome but not in Firefox, and it only occurs with the base url "example.com" (and "www.example.com"). "example.com/path/to/file.php" works. Even "example.com/index.php" works.
When I checked the server log and found lines like (fake ip address and base url):
184.108.40.206 - - [08/Jan/2013:20:37:32 -0800] "GET /cgi-sys/defaultwebpage.cgi HTTP/1.1" 200 3477 "http://example.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11"
I flushed the dns. I cleared the Chrome DNS cache here: chrome://net-internals/#dns
Again, what is causing this, and can I prevent it serverside?
Thanks for the answer. I edited the file and added this right after the opening tag:
<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.example.com">
I found the file in cpanel thanks to this stackoverflow question: change default page in cpanel.
To quote: it's in WHM>> Main >> Account Functions >> Web Template Editor.
I just searched "Web Template" and found it.