N
N
Nday0012020-06-23 16:30:58
Web development
Nday001, 2020-06-23 16:30:58

How to make a file repository with HTTP access?

There is a task: to make an information portal / file repository, i.e. some website with a pleasant design for the average user, no articles, only links to files.
There is such an idea: let's say there is a directory /var/www/html/files, inside the directory the following structure
is ./files/file1.txt
./files/folder1/file1.txt
./files/folder2/file2.1.txt
./ files/folder2/file2.2.txt
We need to display the structured contents of the /var/www/html/files/ directory dynamically on the web page. That is, so that when adding and deleting files, the web page changes.
Something similar is implemented in Linux repositories (eg ru.archive.ubuntu.com/ubuntu/)
Is there a ready-made solution (template) for such a task?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
Philipp, 2020-06-23
@Nday001

https://habr.com/en/post/353478/

S
Sanes, 2020-06-23
@Sanes

This is a regular Nginx or Apache.

N
Nadim Zakirov, 2020-06-23
@zkrvndm

If you want to beautifully design the output, use php to generate an html page with links to files.

N
Nikita Shinkevich, 2020-06-23
@domres

...probably I will advise such garbage now... but I did the same with this script: Manlix Dirs Viewer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question