← 返回到所有服务
GitHub 仓库信息
获取时间 · 2026年6月5日 ★ 6,042 最新版本: v0.30.0 最后更新: 2026年6月4日
README
# h5ai [![license][license-img]][github] [![web][web-img]][web] [![github][github-img]][github] A modern HTTP web server index for Apache httpd, lighttpd, and nginx. ## Important * Do **not** install any files from the `src` folder, they need to be preprocessed to work correctly! * Find a preprocessed package and detailed install instructions on the [project page][web]. * For bug reports and feature requests please use [issues][github-issues]. ## Build There are installation ready packages for the latest [releases][release] and [dev builds][develop]. But to build **h5ai** yourself either `git clone` or download the repository. From within the root folder run the following commands to find a fresh zipball in folder `build` (tested on linux only, requires [`node 10.0+`][node] to be installed, might work on other configurations). ~~~sh > npm install > npm run build ~~~ ## License The MIT License (MIT) Copyright (c) 2020 Lars Jung (https://larsjung.de) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ## References **h5ai** profits from other projects, all of them licensed under the MIT license too. Exceptions are some [Material Design icons][material-design-icons] (CC BY 4.0). [web]: https://larsjung.de/h5ai/ [github]: https://github.com/lrsjng/h5ai [github-issues]: https://github.com/lrsjng/h5ai/issues [release]: https://release.larsjung.de/h5ai/ [develop]: https://release.larsjung.de/h5ai/develop/ [node]: https://nodejs.org [material-design-icons]: https://github.com/google/material-design-icons [license-img]: https://img.shields.io/badge/license-MIT-a0a060.svg?style=flat-square [web-img]: https://img.shields.io/badge/web-larsjung.de/h5ai-a0a060.svg?style=flat-square [github-img]: https://img.shields.io/badge/github-lrsjng/h5ai-a0a060.svg?style=flat-square
h5ai 是一个现代化的 HTTP 文件索引器,提供美观的文件浏览界面。它不需要数据库,只需要 PHP 环境即可运行,是一个轻量级的文件浏览解决方案。
主要功能
- 文件浏览:美观的文件和目录浏览界面
- 文件预览:支持图片、视频、音频、PDF 等文件预览
- 文件搜索:支持文件名和内容搜索
- 文件排序:支持多种排序方式
- 文件过滤:支持按类型过滤文件
- 文件下载:支持单个和批量下载
- 文件分享:支持生成分享链接
- 多语言支持:支持多种语言界面
- 主题定制:支持自定义主题
- 响应式设计:支持移动端访问
部署要求
- PHP 7.0 或更高版本
- Web 服务器(Apache/Nginx)
- 最低配置:1核 CPU,512MB 内存
- 推荐配置:1核+ CPU,1GB+ 内存
- 存储空间:根据需求配置