Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    932
    cPanel/Enkompass Access Level

    Root Administrator

    Default Main IP page showing blank index

    Hi Tristan. I have a similar but a little different problem.... maybe you can shed some light. I am trying to figure out what the server is using for a doc root for the main IP, since it doesn't appear to be /usr/local/apache/htdocs, as you would expect.

    One my 3 oldest cPanel servers, when I browse to the main IP, for example http://123.123.123.123, I get "Index of /" with no files listed.

    When I tack on a bogus directory or file, like http://123.123.123.123/blahblah, I get a 404 as expected, but I do *not* get an entry in /usr/local/apache/logs/error_log.

    My virtual host entry for the server's main IP in httpd.conf looks like this:


    <VirtualHost 123.123.123.123:80>
    ServerName www5.example.com
    DocumentRoot /usr/local/apache/htdocs
    ServerAdmin admin@example.com
    </VirtualHost>


    When I compare settings to my newer cPanel servers, I cannot find anything different (same virtual host entry, but it is correctly pulling up the index.html file in /usr/local/apache/htdocs, so the docroot is working correctly on these servers.

    All cPanel servers are running Apache 2.2, latest Stable, etc.

    Push in the right direction would be cool. Not an urgent issue, or I'd open a ticket.

    Thanks!

    - Scott

  2. #2
    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: Main IP page showing blank index

    Hello sneader,

    I've opened a new thread about this issue as it isn't related to the initial issue. Best to open a new thread whenever possible about such matters.

    The document root should be /usr/local/apache/htdocs with the index.html in that location. Do you have any entry above that one for the main IP in /usr/local/apache/conf/httpd.conf file? Apache will select whatever is the first VirtualHost IP listed in httpd.conf

    Can you try rebuilding Apache and restarting it using these commands (I have a backup being made first before the rebuild)?

    Code:
    cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak110325
    /scripts/rebuildhttpdconf
    /etc/init.d/httpd restart
    Also, could you try checking in a proxy such as proxify.net or kproxy.com to ensure this isn't some type of bizarre caching going on?

    Thanks!
    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

  3. #3
    Member sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    932
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Main IP page showing blank index

    Hi Tristan. I do not see any other VirtualHost entries above the one that I quoted, so I don't think that is it.

    I did the copy / rebuild / restart, and upon restart I get the warning:

    Code:
    [Fri Mar 25 16:37:16 2011] [warn] NameVirtualHost 123.123.123.123:80 has no VirtualHosts
    I sent you a PM with a link to my httpd.conf -- maybe a second set of eyes will sort it out, then we'll document the solution for anyone else that might be having this issue.

    FYI, when I browse to the server name itself, it is definitely using a docroot of /usr/local/apache/htdocs. It's just when we browse to the IP that is apparently using something else (or whatever the issue is)

    Thanks!

    - Scott

  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: Main IP page showing blank index

    Hi Scott,

    Rather than trying to figure this one out via PM, would you be willing to open up a ticket and I'll look at it? You are welcome to post the ticket ID # in a PM. I just rather have the machine login so I don't have to troubleshoot in the dark.

    Thanks
    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 sneader's Avatar
    Join Date
    Aug 2003
    Location
    La Crosse, WI
    Posts
    932
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Main IP page showing blank index

    Hi Tristan. We were able to figure this out... there was an include file that was causing the problem. You were on the right track, asking if there was another virtualhost entry. I had neglected to examine the include files and one of them had a conflicting entry.

    Thanks for the tip and your willingness to assist!

    - Scott

Similar Threads & Tags
Similar threads

  1. Index page showing up instead of homepage
    By acommisso in forum Data Protection
    Replies: 4
    Last Post: 03-14-2008, 12:40 PM
  2. Main index.html not showing
    By Bluexnet2 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-23-2007, 11:31 AM
  3. bw not showing bw page is blank
    By ideal-network in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-23-2006, 09:54 AM
  4. index cpanel blank page
    By Caster in forum New User Questions
    Replies: 2
    Last Post: 03-05-2006, 07:12 PM
  5. cpanel index page in blank
    By stphosting in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-08-2005, 01:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube