SOLVED Problem with addon domain, 403 Forbidden error

Arg85

Registered
Feb 2, 2017
4
0
1
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.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
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.
 

Arg85

Registered
Feb 2, 2017
4
0
1
Greece
cPanel Access Level
Website Owner
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.
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
/home/example/home/example/public_html/domain.gr/
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
Yes, that is the root for my addon domain.
Have you uploaded an index file (e.g. index.html, index.php) to that document root?

Thank you.
 

Arg85

Registered
Feb 2, 2017
4
0
1
Greece
cPanel Access Level
Website Owner
Have you uploaded an index file (e.g. index.html, index.php) to that document root?

Thank you.
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,245
463
Hello,

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