The h5ai directory listing program in my eyes – powerful functions, multi-environment support, and convenient classification

888u

Last update at :2024-06-22,Edit by888u

Recently, some netizens seem to be keen on building their own directory listing programs to manage their own projects and downloaded files, because the security of files stored in third parties is not very reliable, and the third party may need to pay due to certain policies. , speed limit, and even files being deleted for no apparent reason, so it’s better for us to build it ourselves.

Last week, Snail shared "5 Simple and Practical Free Directory Listing Programs". These directory listing programs were also found, and there were several other programs that I had seen before. And it feels good, but I just couldn’t find it when I was writing the article. Some people even asked why the directory list used by Snail was not shared. In fact, I used Directory Lister, but the version was earlier and the style was different from now.

Then a friend mentioned that I forgot to share h5ai, an excellent and powerful directory listing program. This program is currently used by many webmasters. Compared with other programs, it has the most powerful functions, but I Personally, I think that if we simply store the files of a personal website, there is no need to use h5ai. After all, the deployment is more complicated than other models. Snail spent half the afternoon debugging under Apache and Nginx and found that various problems sometimes occur.

Since everyone mentioned this program, let’s install it and take a look.

First, preparations

Currently, h5ai needs to support PHP5.3 or above, so we need to use this version or above of PHP when deploying the environment. It supports Apache httpd, lighttpd, nginx and Cherokee driven WEB environments.

Official website: https://larsjung.de/h5ai/

The latest version is 0.27.0, which we can download from the official website.

Second, install the program

The initial installation is very simple. We download the program and then upload it to the directory. After the parsing is completed, we open the homepage and see a login interface. There is no need to enter a password and you can log in directly. You can see the current support environment.

We can see the current system support environment. If it is not supported, we need to adjust the component installation.

Third, set the default homepage

When we open it by default, it is a login interface. This page can be modified, or the preferences can be adjusted on the default home page.

Note: It should be noted here that the following is the setting preference. The _h5ai secondary directory is used here. We can set the secondary directory or adjust the root directory according to our actual situation.

1. Apache httpd

DirectoryIndex index.html index.php /_h5ai/server/php/index.php

For this we need to set preferences in .htaccess.

2. lighttpd

index-file.names += (\\”index.html\\”, \\”index.php\\”, \\”/_h5ai/server/php/index.php\\”)

Set lighttpd.conf

3. Nginx

index index.html index.php /_h5ai/server/php/index.php;

Set preferences in our current site's .conf file.

4. Cherokee

vserver!1!directory_index = index.html,index.php,/_h5ai/server/php/index.php

Set in the cherokee.conf file.

Other settings are generally default. If we need other personalized settings, we need to adjust them in conf/options.json.

Fourth, successful installation demonstration

Here we can see a demonstration after successful installation.

To summarize, the functions of h5ai are very powerful, especially in terms of classification and layout, it can be sorted according to date and file name, can also be displayed in icon mode, supports multiple languages, and can be set to play online video and audio files. However, Snail personally believes that if we simply assist personal content documents, it would be too complicated and unnecessary. And the file is too complicated, so it’s better to use something simple.

Recommended site search: cloud host, icp registration center, best US server, cm domain name, Alibaba cloud server, free domain name, registration password retrieval, Shandong registration, cloud host, Hong Kong vps host,

The h5ai directory listing program in my eyes – powerful functions, multi-environment support, and convenient classification

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码