
私はNetjear Readynas 212を持っていて、共有ディレクトリを設定しようとしています。
共有は/ data /にあります。ここで、/data/share/ はリストする必要があるフォルダーです。
NASでは、ネットワークアクセスの最初の共有は/ data / share /です。
/etc/apache2/sites-available/000-default.conf
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /data/share
<Directory /data/share>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
a2ensite 000-default.conf
confをデフォルト値に設定しました
エンジンを再構築することもできます。a2enmod rewrite
/data/shareの.htaccess
# Apache Autoindex Directives
Options +Indexes
IndexOptions ShowForbidden
IndexOptions FancyIndexing HTMLTable SuppressRules ShowForbidden
IndexOptions IconsAreLinks ScanHTMLTitles NameWidth=* DescriptionWidth=*
# Autoindex-Strapdown Directives
AddType text/plain .md
HeaderName HEADER.md
ReadmeName README.md
# Customize by setting theme and title
IndexHeadInsert "<script>conf = {theme: 'cyborg', title: 'Mitarbeiterverzeichnis'};</script> \
<script src='http://ais.habilis.net/autoindex_strapdown.js'></script> \
<link rel='stylesheet' href='http://ais.habilis.net/autoindex_strapdown.css'>"
# Icons using Bootstrap's Glyphicon set
DefaultIcon http://ais.habilis.net/icons/pdf.png
AddIcon https://10.0.1.222/icons/blank.png ^^BLANKICON^^
AddIcon https://10.0.1.222/icons/folder-open.svg ^^DIRECTORY^^
AddIcon https://10.0.1.222/icons/back.png ..
AddIconByType (TXT,https://10.0.1.222/icons/file.svg) text/*
AddIconByType (IMG,https://10.0.1.222/icons/picture.svg) image/*
AddIconByType (SND,https://10.0.1.222/icons/music.png) audio/*
AddIconByType (VID,https://10.0.1.222/icons/film.png) video/*
アイコンをダウンロードしてリスト共有に対応するフォルダを作成しましたが、ブラウザを使用してデバッグするときにアイコンを設定していないにもかかわらず、応答.gifがまだありません。
私も試しました。ramlmnのディレクトリ一覧、成功できませんでした。
たぶん誰かが私が何を逃しているのか知っているかもしれません。