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.

SOLVED Problem with addon domain, 403 Forbidden error

Discussion in 'Bind / DNS / Nameserver Issues' started by Arg85, Feb 2, 2017.

  1. Arg85

    Arg85 Registered

    Joined:
    Feb 2, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Website Owner
    Hello,
    The url of my primary domain is example.gr and the url of my addon domain is domain.gr. Recently the addon domain stopped working, showing a 403 Forbidden error, "you don't have permission to access / on the server", or it redirected me to example.gr/domain.gr/, which by the way works properly.

    I suspected it was my fault as i was messing up with .htaccess files, so I renamed both of them but with no luck. I even deleted my sitemap files.

    Any suggestions of what may have gotten wrong?

    Thank you in advance.
     
    #1 Arg85, Feb 2, 2017
    Last edited by a moderator: Feb 2, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can browse to the "Error Pages" option in cPanel when this happens and let us know the recent output related to the 403 error code:

    Error Pages - Documentation - cPanel Documentation

    Ensure to remove references to real domain names and IP addresses when pasting the output.

    Thank you.
     
  3. Arg85

    Arg85 Registered

    Joined:
    Feb 2, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Website Owner
    Thanks for the warning..
    This is the error I am getting:

    [Fri Feb 03 06:41:10.964774 2017] [autoindex:error] [pid 790669:tid 140534435759872] [client *****] AH01276: Cannot serve directory /home/example/home/example/public_html/domain.gr/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,index.shtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html,welcome.html) found, and server-generated directory index forbidden by Options directive
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you verify the path referenced in your last response is the document root you have configured for the addon domain name? If so, you will need to upload an index file (e.g. index.html) to the document root directory referenced in that error message.

    Thank you.
     
  5. Arg85

    Arg85 Registered

    Joined:
    Feb 2, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Website Owner
    Yes, that is the root for my addon domain.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Have you uploaded an index file (e.g. index.html, index.php) to that document root?

    Thank you.
     
  7. Arg85

    Arg85 Registered

    Joined:
    Feb 2, 2017
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Greece
    cPanel Access Level:
    Website Owner
    Sorry for the late response,
    You were right. It was a silly error at the document root of my addon domain. There was a double entry of my /home/example/ folder....
    So everything is OK now. Thanks
     
  8. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,086
    Likes Received:
    1,288
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
     
Loading...

Share This Page