Synology WebStation の Apache で Autoindex を有効化
ConfigファイルにIndexsオプションを追記する
Include conf-enabled/.webstation.error_page.default.conf <VirtualHost *:9000> DocumentRoot "/volume1/Media" <IfModule dir_module> DirectoryIndex index.html index.htm index.cgi index.php index.php5 </IfModule> <Directory "/volume1/Media"> Options MultiViews FollowSymLinks ExecCGI AllowOverride All <IfModule authz_core_module> Require all granted </IfModule> Options +Indexes # SET INDEX OPTIONS IndexOptions IgnoreCase IndexOptions FancyIndexing IndexOptions FoldersFirst IndexOptions IconHeight=16 IconWidth=16 IndexOptions HTMLTable IndexOptions NameWidth=* IndexOptions DescriptionWidth=* IndexOptions SuppressHTMLPreamble IndexOptions Charset=UTF-8 # SET STYLE SHEET IndexStyleSheet "/.indexstyles/table-darkmode.css" # SET DISPLAY ORDER IndexOrderDefault Ascending Name # SET IGNORE Case IndexIgnore @eaDir .indexstyles IndexIgnore Thumbs.db *.png </Directory> <FilesMatch "\.(php[345]?|phtml)$"> SetHandler "proxy:unix:/run/php-fpm/php-182b445b-6caf-469f-acaa-a763582ba8db.sock|fcgi://localhost" </FilesMatch> </VirtualHost>
参照)スタイル設定はこちらを参考にしました 自定义配置的apache默认目录页 autoindex IndexStyleSheet_你以为你以为的就是你以为的嘛-程序员宝宝 - 程序员宝宝