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.

Addon domain index file

Discussion in 'General Discussion' started by nurseryboy, Nov 10, 2005.

  1. nurseryboy

    nurseryboy Well-Known Member

    Joined:
    Mar 3, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    I have a client who just added an addon domain and has uploaded an index.html file to the new addon. But, when he accesses the site through the internet, it shows the directory listing ("Index of /"), and lists the index.html file, rather than displaying it automatically. DirectoryIndex's work fine on normal domains, but I can not figure out why it's not working on the addons. Does anyone have any suggestions?

    Thanks,

    Matthew
     
  2. nurseryboy

    nurseryboy Well-Known Member

    Joined:
    Mar 3, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    After some "fooling around", I've found that renaming the file to index.php works, but index.html still does not.
     
  3. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    Hello,

    Check the DirectoryIndex option in your apache config file, May be you are missing the index.html in there.
     
  4. nurseryboy

    nurseryboy Well-Known Member

    Joined:
    Mar 3, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Thanks. I checked, and it is in there. My DirectoryIndex's are as follows:

    index.html index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm default.htm

    That was copied right out of httpd.conf.
     
  5. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    In the directory that contains the subdirectory for the add-on domain (i.e. the accounts main public_html dir) is there a .htaccess file that could be interfering?
     
  6. nurseryboy

    nurseryboy Well-Known Member

    Joined:
    Mar 3, 2003
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Thanks Chirpy, that was it! I could have sworn I looked for a .htaccess file, but I guess I didn't, lol. Thanks again.
     
Loading...

Share This Page