Cpanel Set Default Webpage: defaultwebpage.cgi

On new `cPanel` servers if you try and access the site via IP or a domain name that does not yet have an account, you’ll be greeted with the `Default Website Page` response and redirected to `/cgi-sys/defaultwebpage.cgi`

This is a little bit annoying because the page will set an expires time that is not immediate. That means in most browsers when you fix the error on your server (if you are the cPanel administrator) and try to check the site again, you’ll be automatically redirected to `/cgi-sys/defaultwebpage.cgi` and get the “Default Web Site Page” message even if your site has been correctly fixed. So that means you need to clear your browser’s cache each time it is messed up and you attempt a fix – this is a little annoying.

What happens is that there is a default `index.html` file that uses `meta refresh` tag to forward you along to `/cgi-sys/defaultwebpage.cgi`

The default index file is located at:

/usr/local/apache/htdocs/index.html

I’ve updated mine so it just displays an error on that page. You can even copy and paste the generated output from the `defaultwebpage.cgi` file into the index.html file (make a backup first if you’d like) and then the page will just show the error text and not redirect you to the `cgi-bin` directory and refuse to re-check the homepage without clearing the cache.

Once you’re no longer being forwarded to the cgi-bin directory, you can just do some `control+r` or `f5` to tell the browser to reload the page to check and see if your cPanel settings have been fixed.

Related Posts:

  • No Related Posts
This entry was posted in Tech Tips and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *