我设法用Apache在debian上安装了h5ai,但我有一个问题。
我在我的/var/www/ h5ai文件夹中解压了文件,当我打开"http://tmp.domain.com“时,我可以看到我的"files”文件夹中的所有内容。但当我单击其中一个子文件夹时,h5ai显示此文件夹为空。对于/files的每个子文件夹都是如此...当我刷新其中一个空文件夹(http://tmp.domain.com/nameoffolder)的页面时,Apache index再次显示,但这次显示的是该文件夹的内容。
我已经用Apache安装了它,并在/etc/apache2/sites available/default的末尾添加了以下几行:
<VirtualHost *:80>
DocumentRoot /var/www/files
ServerName tmp.domain.com
<Directory /var/www/torrent>
Options Indexes
AuthType Digest
AuthName "Access restricted"
AuthDigestDomain "http://tmp.domain.com"
AuthDigestProvider file
AuthUserFile /home/tulleb/.htdigest
Require valid-user
DirectoryIndex index.html index.php _h5ai/server/php/index.php
</Directory>
CustomLog /dev/null "combined"
ErrorLog ${APACHE_LOG_DIR}/dl-error.log
</VirtualHost>我在/files文件夹上尝试了chmod -R 777,但没有任何区别。
你有什么想法吗?非常感谢。
发布于 2014-05-29 04:04:37
您忘记了前导斜杠:
DirectoryIndex index.html index.php /_h5ai/server/php/index.php
↑发布于 2013-12-31 19:31:30
torrent文件夹(在我看来)是受密码保护的。禁用它以测试h5ai。并检查您的apache日志dl-error.log,您可能会有错误在那里。
https://stackoverflow.com/questions/20747696
复制相似问题