Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 "" into the address bar and am "redirected" to "" 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 "" (and ""). "" works. Even "" works.

When I checked the server log and found lines like (fake ip address and base url): - - [08/Jan/2013:20:37:32 -0800] "GET /cgi-sys/defaultwebpage.cgi HTTP/1.1" 200 3477 "" "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=">

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.

share|improve this question

closed as off-topic by masegaloeh, Jim B, mdpc, Andrew Schulman, Hyppy Apr 30 '15 at 13:49

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

up vote 4 down vote accepted

It's not a DNS issue, browsers tend to cache the default redirect from cpanel quite long and persistently (sadly it's a html refresh, "<html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL=/cgi-sys/defaultwebpage.cgi"></head><body></body></html>"). Did you also clear the regular browser cache from chrome, or tried with a private browsing window? "" works because you probably didn't visit that URL before the site was properly set up in cpanel.

share|improve this answer
Thanks, I guess it was the regular cache after all. But I have no idea why I ever arrived at that page in the first place. Do you know why it would be served in the first place? Should I put a redirect on that page so that any other users will not have the same result? – Buttle Butkus Jan 9 '13 at 6:31
If it's working in "fresh" browsers right now, everything should be fine. It usually means you visited that domain while it was already pointing to the cpanel server, but the cpanel server was not yet configured with that domain (it was not parked or used for an account). Cpanel then shows this redirect page. You could consider replacing the default cpanel placeholder with something more sensible without a redirect. That way it might still be cached for a while, but then at least a refresh from the browser will get the new content. – arjarj Jan 9 '13 at 6:35
I tried typing in "" and pressing ctrl-F5 repeatedly though and did not get any change. I've never had Chrome be so stubborn. Why not use the redirect, as I have in the solution I added to the question? – Buttle Butkus Jan 9 '13 at 6:42
Once you get to press ctrl-F5, it's already too late. The redirect will already be read from cache and executed, so you'll end up refreshing the redirect target. It's the same with cached 301 responses really. – arjarj Jan 9 '13 at 8:39

I ran into Chrome aggressive caching slapping me into /cgi-sys/defaultwebpage.cgi after I re-wrote my site and moved it to a new server. Adding a META tag doesn't work because Chrome never gets that far-it's reading from its cache an earlier redirect.

I solved this by adding a 301 redirect to my .htaccess with this line:

Redirect 301 /cgi-sys/defaultwebpage.cgi /index.html

I'm not sure what my original site was developed with but my new site is a Jekyll-generated static site.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.