The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can not access file after / on domains

Discussion in 'General Discussion' started by HappyCoder, Aug 9, 2013.

  1. HappyCoder

    HappyCoder Member

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi friends,

    I have a crazy problem with a new cPanel installation on CentOS.
    I created a domain and an index.html-file.
    When I type Example Domain will appear index-file. When I write Example Domain so happens error 404. Does not matter which file I try to access, as occurs 404.

    What have I configured wrong?
     
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,452
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Not sure I understand, whats this: -file
    Is that part of the file name? If yes, change it to index.html
     
  3. HappyCoder

    HappyCoder Member

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    index.html-file is just index.html ;-)
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    It's possible this is a browser or DNS cache issue. Are you sure your domain name fully resolves to your server? Also, have you tried uploading other files to see if they are accessible?

    Thank you.
     
  5. HappyCoder

    HappyCoder Member

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi Michael,

    Yes, I am quite sure that the whole domain name pointing into the server - and the server can be approved.
    I also tried to upload other files - it's exactly the same error.
     
  6. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,452
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    What happens when you upload an index.php to the public_html/
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    404 error messages indicate the file can not be found. Please ensure you are uploading the files to the correct directory (.e.g. public_html) and not the actual home directory of the accounts.

    Thank you.
     
  8. HappyCoder

    HappyCoder Member

    Joined:
    Apr 27, 2012
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Oops - now I have discovered the error. And it is quite embarrassing!

    I have changed the server's local IP address, and my test domain was still configured in cPanel to the old IP address.

    Thanks for everyone's help!
     
Loading...

Share This Page