# IndexMirror **Repository Path**: amilys/IndexMirror ## Basic Information - **Project Name**: IndexMirror - **Description**: Directory Lister 目录列表成程序的美化版 - **Primary Language**: PHP - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2020-02-07 - **Last Updated**: 2024-07-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # =============公告=============== > 欢迎使用IndexMirror,这是一条测试公告^ _ ^ > > > 公告只显示最上面第一条! # =============================== # 说明 ## [[演示站](http://mr.ssr0.cn:8000/)] > 主要功能是展示网站目录下文件。 > 本程序为 [Directory Lister](https://www.directorylister.com/) 个人美化版 > 请勿删除README.md,网站公告信息通过此文件发布 > Live2D 显示对话在 /resources/themes/ssrzero/live2d/message.json 中 > [web](http://mr.ssr0.cn:8000/?dir=web)目录存放着Live2D资源,自行更改替换 > 魔方图片在/resources/themes/ssrzero/img/ 目录中 > 底部网站信息在 /resources/themes/ssrzero/default_footer.php 中修改 # 安装方法 下载源码 `git clone https://gitee.com/amilys/IndexMirror.git` 将目录内容移至网站目录 `mv IndexMirror/* /var/www/` 由于程序使用的是相对路径,使用二级目录需要绑定二级域名,否则网站无法正常显示 以Apache2 例: `nano /etc/apache2/sites-enabled/000-default.conf` 在末尾加上 ``` ServerAdmin webmaster@localhost ServerName mr.ssr0.cn #网站二级域名 DocumentRoot /var/www/IndexMirror #网站二级目录 ErrorLog ${APACHE_LOG_DIR}/error.log #CustomLog ${APACHE_LOG_DIR}/access.log combined ``` 保存并重启Apache2 `service apache2 restart` # 建议 关闭apache2自带网站文件显示 `nano /etc/apache2/apache2.conf` 将其中的`Options Indexes FollowSymLinks` 注释掉改为`Options FollowSymLinks` ``` Directory /var/www/> DirectoryIndex index.php index.html # Options Indexes FollowSymLinks Options FollowSymLinks AllowOverride None Require all granted ``` 保存重启apache2