Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Display file-index in public_html via URL

Discussion in 'General Discussion' started by sushlik, Jan 7, 2015.

  1. sushlik

    sushlik Active Member

    Joined:
    Mar 2, 2012
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    Hello,

    I have gone thru about 40 threads using similar search queries but did not find exactly what I am looking for.

    One of our cpanel-users wants to display a list of files thru his main-domain (or any other URL), that is listed in a specific folder "media" inside his web-root (public_html). He has no index-file inside "media" and just wants the visitors to present a list of pictures inside that folder.

    How can I help him? Is cPanel providing a special setting with some kind of pre-defined template to use for some kind of "public webftp (read-only)"?

    Sorry for my english and thank you for any help!

    Happy new year,
    Sascha
     
  2. kdean

    kdean Well-Known Member

    Joined:
    Oct 19, 2012
    Messages:
    281
    Likes Received:
    18
    Trophy Points:
    18
    Location:
    Orlando, FL
    cPanel Access Level:
    Root Administrator
    Place a ".htaccess" file in the "media" folder with the contents:

    Code:
    Options +Indexes
    IndexOptions FancyIndexing NameWidth=* SuppressDescription
    IndexIgnore .htaccess
    
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,758
    Likes Received:
    1,886
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You can also use the "Index Manager" option in cPanel:

    Index Manager

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice