Last update at :2024-07-11,Edit by888u
h5ai is a powerful PHP file directory listing program. It provides a variety of file directory listing presentation methods, supports Apache httpd, lighttpd, nginx and other web servers, and supports multiple languages (such as English, Simplified Chinese, etc.) , you can preview txt, pictures, audio, video and other file formats online.
This is a version made by netizens with strong functions.
1. h5ai updated to 0.29.2 2. DPlayer updated to 1.25.0 3. Add support for hls slice playback 4. Support login verification, the default username and password are admin
1. About sliced video playback: 1. For example, if the video is in /video/abcd.mp4, it will automatically search for /video/__abcd__/video.m3u8. That is, it will look for slice files under the "__video file name__" folder. If there are no slice files, the original video will be played. Slice folders and files are hidden and will not be displayed in h5ai. 2. Slice files can be generated by yourself using ffmpeg, for example
mkdir __abcd01__ ffmpeg -i "abcd01.mp4" -c copy -hls_time 6 -hls_list_size 0 -hls_segment_filename "__abcd01__/%04d.ts" "__abcd01__/video.m3u8"2. About login It's very simple to make for personal use, just enough. If you do not want the username and password, log out by including ‘login.php’ in the second line of _h5ai/public/index.php. Change the username and password in _h5ai/public/login.php.
Local download: h5ai_dplayer_hls_by_icycat
3. h5ai settings Add default homepage configuration
We cannot see the directory when we open the URL directly. We need to add a default homepage. The methods of adding different web environments here are different.
Apache httpd 2.2/2.4:
DirectoryIndex index.html index.php /_h5ai/public/index.phpnginx 1.2:
index index.html index.php /_h5ai/public/index.php;Before modification
server { listen 80; ... index index.php index.html index.htm default.php default.htm default.html; ...After modification
server { listen 80; ... index index.html index.php /_h5ai/public/index.php; ...The pagoda panel is simpler
Then modify Pagoda Backend – Website – Settings – Default Document, delete everything and replace it with the following code and click Add:
index index.html index.php /_h5ai/public/index.phpRecommended site search: Singapore server, hosting service, cn domain name, US server, US virtual host, IP address detailed query, Wanwang space price, Foshan high-defense server registration-free, cn domain name personal registration
发表评论