Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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 403 Forbidden Error With addon Domain

Discussion in 'Bind / DNS / Nameserver Issues' started by Sounak, Dec 29, 2017.

Tags:
  1. Sounak

    Sounak Registered

    Joined:
    Dec 29, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Kolkata
    cPanel Access Level:
    Website Owner
    Hello,

    I am using cPanel through HostGator's hosting service. My Domain is on GoDaddy.com

    Now lets say I have the primary domain as abc.com, I have put the name servers on GoDaddy and it works fine. I added another Addodn domain say xyz.com, and also put the same name servers on GoDaddy, But when i open xyz.com, i get an error of 403:Forbidden. I have asked Hostgator help and they said this is the only way. Please help me out peeps.

    Document root of ADON DOMAIN : /public_html/xyz.com

    Error from the cPanel :-
    [Fri Dec 29 14:07:57 2017] [error] [client xx.xxx.xxx.xxx] Directory index forbidden by Options directive: /home/xxxxxx/public_html/xyz.com/

    PS: The primary domain works fine
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    261
    Likes Received:
    19
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    do you any web pages uploaded to the addon domain yet ? try uploading a test html page and then browse the addon domain.
     
    cPanelMichael likes this.
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,731
    Likes Received:
    78
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    -> It appears that you do not have index page in the document root that is the reason it is asking for directory listing as per the error you gave. You can either enable the directory listing for this domain or you can create an index page in this document root and then browse the website to check if it is accessible..
     
  4. Sounak

    Sounak Registered

    Joined:
    Dec 29, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Kolkata
    cPanel Access Level:
    Website Owner
    your quote really helped me to dig into it, the problem was that there was no web pages there, I had installed wordpress but it went inside another directory wp, so the address was xyz.com/wp

    thank you very much fir your support . Helped me a lot.

    thank you for the suggestion, it helped, I had installed wordpress but on further checking it came that it went inside a directory of its own called wp, thus the website was xyz.com/wp, corrected it and now it all works fine :)
     
    #4 Sounak, Dec 30, 2017
    Last edited by a moderator: Dec 30, 2017
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,782
    Likes Received:
    1,712
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

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

Share This Page