Display file-index in public_html via URL

sushlik

Active Member
Mar 2, 2012
26
0
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
 

kdean

Well-Known Member
Oct 19, 2012
406
79
78
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
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

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

Index Manager

Thank you.