1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Change the default page for the WHM server - no account

Discussion in 'General Discussion' started by rocksolidhq, Sep 15, 2012.

  1. rocksolidhq

    rocksolidhq Member

    Joined:
    Sep 13, 2011
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Hey Guys,

    This is a difficult one to describe but here goes.

    We have several WHM servers and while our primary website lives on one of them, visiting the root address of the other servers (without /whm, /cpanel, webmail, etc) results in the defaultwebpage.cgi. Which directory should I add a redirect to get visitors over to our proper website?

    thanks,
    dean
     
  2. rocksolidhq

    rocksolidhq Member

    Joined:
    Sep 13, 2011
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Nevermind. Finally found the answer:
    There's a lot easier way to do it. You should just revise /usr/local/apache/htdocs/index.html file to change it from going to the default page:

    Code:
    <html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL=/cgi-sys/defaultwebpage.cgi"></head><body></body></html>
    Change to the following:

    Code:
    <html><head><META HTTP-EQUIV="refresh" CONTENT="0;URL=http://domain.com"></head><body></body></html>
    Please replace domain.com with your domain name.

    http://forums.cpanel.net/f5/possibl...n-ip-http-xx-xx-xx-xx-284642.html#post1191022
     

Share This Page