Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Nov 2011
    Posts
    23
    cPanel/Enkompass Access Level

    Root Administrator

    Default Default page for server.

    I have dedicated server on Godaddy when i go to it like https://111.222.333.444:2087/ it opens the WHM login but when i go to http://111.222.333.444/ it shows "Default Page" - "If you feel you have reached this page in error, please contact the web site owner" how can i change that page or add some domain that is on this ip address to be the main domain for the server?

  2. #2
    Support Manager cPanelEric's Avatar
    Join Date
    Nov 2007
    Location
    Texas
    Posts
    488
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Default page for server.

    Howdy,

    You can fix this several ways but from WHM >> Main >> Account Functions >> Web Template Editor you can alter the default page.

    Thanks!

  3. #3
    Member
    Join Date
    Oct 2011
    Posts
    6
    cPanel/Enkompass Access Level

    Website Owner

    Default Re: Default page for server.

    Is there way to display one of the accounts i have as default content for the ip address, i have that account on same ip address.

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Default page for server.

    Yes, you could edit /usr/local/apache/htdocs/index.html to have that redirect changed from the default page to your main site. The existing content will be the following:

    <html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL=/cgi-sys/defaultwebpage.cgi"></head><body></body></html>
    Change the "0;URL=/cgi-sys/defaultwebpage.cgi" portion to be "0;URL=http://mymaindomain.com/" instead where mymaindomain.com is your main domain you want to show for that IP address.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Member
    Join Date
    Feb 2012
    Posts
    16
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Default page for server.

    Tristan, will it get overwritten after an Apache update /rebuild?

    Thanks. I moved that to index2.html and added a index.php that uses the <domain name> on the title and coming soon message for dns only domains. I have no clients.

    Quote Originally Posted by cPanelTristan View Post
    Yes, you could edit /usr/local/apache/htdocs/index.html to have that redirect changed from the default page to your main site. The existing content will be the following:



    Change the "0;URL=/cgi-sys/defaultwebpage.cgi" portion to be "0;URL=http://mymaindomain.com/" instead where mymaindomain.com is your main domain you want to show for that IP address.

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Default page for server.

    There is no such thing under cPanel as an index.php page, so it wouldn't be overwritten.

    You are going to have index.html placed back onto the account if it has been moved. I suggest either putting the content into index.html or adding a /scripts/posteasyapache script to move index.html and recreate index.php when it gets recreated on EasyApache recompile:

    Code:
    #!/bin/bash
    
    mv /usr/local/apache/htdocs/index.html /root/index.html.`date +%Y-%m%d-%H%Mh%S`
    cp /root/index.php /usr/local/apache/htdocs/
    You'll likely need to "chmod +x /scripts/posteasyapache" for this to execute. You'll also need to place a copy of index.php into /root location for it to be copied to /usr/local/apache/htdocs folder.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    Member
    Join Date
    Feb 2012
    Posts
    16
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Default page for server.

    Thanks Tristan,
    I have .php first in open-up order so I should be fine since it doesn't get deleted.

    I will copy the bash script though, just in case.

Similar Threads & Tags
Similar threads

  1. Server keeps showing default Enkompass page for the site
    By DeepXP in forum Enkompass Discussions
    Replies: 11
    Last Post: 01-11-2011, 01:01 AM
  2. Change the default server page on host
    By redlorry919 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-19-2005, 05:06 AM
  3. Default page on server
    By capuano in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-22-2005, 01:28 PM
  4. New server and default apache page...
    By joshstein in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-23-2003, 10:52 PM
  5. Domain Loading Server Default Page
    By ezwebscripts in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-12-2003, 08:18 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube