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.

In case browser for my site shows file structure

Discussion in 'General Discussion' started by lse, May 10, 2016.

  1. lse

    lse Active Member

    Joined:
    May 5, 2016
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Polis, Cyprus
    cPanel Access Level:
    Root Administrator
    In case browser for my site shows file structure - in case in a directory without index file like css or js - what can be done ... in server? VPS cent OS 6.7.

    i mean in other words when go to site.com/js show list of js files? site.com/js/index.html only if this index.html exist Not go to list...

    well how prevent it
     
    #1 lse, May 10, 2016
    Last edited by a moderator: May 10, 2016
  2. lse

    lse Active Member

    Joined:
    May 5, 2016
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Polis, Cyprus
    cPanel Access Level:
    Root Administrator
    solved by below... is any way setup a default .htaccess file for all sites from cPanel...?

    .htaccess


    # disable directory browsing
    Options All -Indexes
     
  3. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    This is an option in WHM:
    Home »Service Configuration »Apache Configuration »Global Configuration, Directory “/” Options
     
  4. lse

    lse Active Member

    Joined:
    May 5, 2016
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Polis, Cyprus
    cPanel Access Level:
    Root Administrator
    so disable indexes correct?
     
  5. lse

    lse Active Member

    Joined:
    May 5, 2016
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Polis, Cyprus
    cPanel Access Level:
    Root Administrator
    ok Worked
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,684
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page