A
A
Alexander Fadeev2013-12-03 07:12:44
HTML
Alexander Fadeev, 2013-12-03 07:12:44

How to create a file tree on hosting that is available to the public?

I often saw how on some sites there are generated pages where you can rummage through the folders in a list in the form of a tree and download the files that are there.
Is it exclusively browser-based generation or is it possible to generate such pages somehow yourself?
There is a regular hosting, which will have a large number of photos arranged in folders. I want to be able to go to the subdomain where they are, and just see a list of folders and files in the form of links. Are there such generators? And if so, what are they called?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex, 2013-12-03
@AlexFadeev

This is built into the standard functionality of the apache web server.
If there is no index.php in the directory (html, shtml, etc., configured as an index), and mod_rewrite is not configured, plus this is not prohibited by Apache settings, it produces a standard tree of directories and files. The same is true for the underlying folders.
If you yourself cannot / do not know how to configure a web server - try contacting a hoster / knowledgeable people. But first you can check
Also, I want to pay attention - many CMS include a check for the absence of an index file, and give out their main page.

K
kmx, 2013-12-03
@kmx

Throw files into a folder on the server, for example, into the /down/ directory,
do not lie the index file (index.php, index,html, etc)
Write in this folder in htaccess
, now you can go to the browser at http://website/your-folder /

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question