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.

err404.shtml Not Work for Add On Domains?

Discussion in 'General Discussion' started by netmation, Sep 27, 2004.

  1. netmation

    netmation Member

    Joined:
    Sep 23, 2004
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    New to CPanel. I setup the err*.shtml pages and they all work for the primary domain in an account. But it does not work for the ADD ON DOMAINS I create in the account. How can I configure it so that all domains will utilize the err files? Can I even have custom error files for some of the ADD ON DOMAINS within an account? Thanks.
     
  2. linux-image

    linux-image Well-Known Member

    Joined:
    Jun 8, 2004
    Messages:
    1,192
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    Root Administrator
    addon domain = domain parked on a subdomain.

    suppose your domain is abc.com with username abc; and your add-on domain is xyz.com. what you do is park xyz.com on xyz.abc.com.

    Hence the documentroot of xyz.com will be /home/abc/public_html/xyz/

    and that of abc.com is /home/abc/public_html/

    so putting an error document at /home/abc/public_html/ and calling it up from xyz.com will never give it access; since xyz.com has permission to access files inside /home/abc/public_html/xyz/ only.

    Solution: Put the error documents inside /home/abc/public_html/xyz/ and then reset the proper paths for the error documents accordingly and this shld work.
     
Loading...

Share This Page