Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    158

    Default Directory browsing

    hi is it possible to turn of directory browsing in cpanel. If so, how do you do it?

    Thanks,

  2. #2
    Member
    Join Date
    Dec 2003
    Location
    France
    Posts
    300
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    On a case by case basis, the cPanel feature "Index Manager" will work just fine. If you want to disable it server wide, run this command in SSH :

    Code:
    replace Indexes -Indexes -- /usr/local/apache/conf/access.conf
    Marie - Co-Owner
    Need Further Assistance ? Here you go !
    English, french and spanish support

  3. #3
    Member bmcpanel's Avatar
    Join Date
    Jun 2002
    Posts
    546

    Default

    Another way to do this, without touching your .conf files is to create a .htaccess file in the /home directory..

    vi /home/.htaccess

    Inside that file, paste the following.

    Options -Indexes

    This will cause directory indexing to be off by default in all sub-directories of /home

    Ex.
    /home/username1/www
    /home/username2/www
    /home/username2/www/images

    If a client has a directory they want to allow directory browsing in, they can then place a .htaccess file in their directory that has the following in it.

    Options +Indexes

    This will affect only the directory with the .htaccess file that has +Indexes in it. The default of OFF for indexing will remain for all other directories.

Similar Threads & Tags
Similar threads

  1. Directory Browsing not working?
    By SoftDux in forum Enkompass Discussions
    Replies: 5
    Last Post: 02-22-2011, 03:31 PM
  2. Directory Browsing/Listing
    By Hardy in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-16-2007, 09:43 PM
  3. Directory Browsing
    By theDOG in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 08-21-2006, 02:08 PM
  4. Main Shared IP - Directory Browsing
    By bonnmac in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-31-2004, 07:01 PM
  5. [proftp] On browsing directory, disconnect
    By F Brown in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-01-2004, 11:42 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube