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.

DirectoryIndex directives in userdata being ignored after EA3?

Discussion in 'General Discussion' started by mtindor, Oct 25, 2007.

  1. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    I'm running WHM 11.11.0 cPanel 11.15.0-R17665

    What is the syntax in /var/cpanel/userdata/accountname/domain.ext for directoryindexes?

    We had a site which required index.htm to be searched for before index.html. After the EA3 update, it looks like it imported the directoryindex data but ignored it.

    Here is what i have (partial) in my 'domain.com' file in /usr/cpanel/userdata/accountname:

    ifmodulemoddirc:
    directoryindex:
    -
    directoryindex: index.htm index.wml index.cgi index.shtml index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.html default.htm default.html home.htm
    ifmodulemodsuphpc:
    group: accountname


    I am guessing this is not how it should look in the userdata entry (I didn't put it there, Cpanel did) because it is not being used.

    Mike
     
  2. nilesh_kolte

    nilesh_kolte Well-Known Member

    Joined:
    Apr 13, 2006
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Pune ,India
    cPanel Access Level:
    Root Administrator
    Hello,

    You can set the following in your domains .htaccess

    DirectoryIndex index.htm index.html index.php

    This will fix your issue.
     
  3. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    That was the quick fix - and I used that. Thank you very much. However, I still need to get an answer from the Cpanel folk regarding this.

    We had a custom directoryindex entry in our old httpd.conf for this one particular domain. When we updated to the latest RELEASE version and are now using EasyApache3, when it converted that old information into the appropriate data usable by the new system, it did not import that into the userdata file properly.

    But again, you're suggestion got the customer off of my back :)

    Mike
     
  4. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The best way to get answers from the cPanel staff regarding technical issues is to submit a support ticket. Note our support staff does not routinely monitor these forums, hence that would be the best way to proceed.
     
  5. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,279
    Likes Received:
    36
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    David,

    I'm aware of the procedure. I posted here in an attempt to get a 'quicker' answer, or at least a 'quick fix' to my problem. And I did.

    A ticket has already been opened with you guys. I know where to go if I want support from Cpanel :)

    Mike
     
Loading...
Similar Threads - DirectoryIndex directives userdata
  1. speckados
    Replies:
    1
    Views:
    178

Share This Page