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.

Display file-index in public_html via URL

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

  1. sushlik

    sushlik Member

    Joined:
    Mar 2, 2012
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    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:
    262
    Likes Received:
    12
    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 Forums Analyst
    Staff Member

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

Share This Page