Apache 403别名到用户目录

我试图让Apache列出用户下载目录的内容,所以我在/ var / www /中创build了一个指向/ home / user / downloads的别名

我有chmod -R 755 /home/user/download/

和我的Apacheconfiguration如下?

 <VirtualHost *:80> ServerAdmin webmaster@localhost DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/> Options -Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined <Location /rutorrent> AuthType Digest AuthName "rutorrent" AuthDigestDomain /var/www/rutorrent/ http://<servername or IP>/rutorrent AuthDigestProvider file AuthUserFile /etc/apache2/htpasswd Require valid-user SetEnv R_ENV "/var/www/rutorrent" </Location> </VirtualHost> <VirtualHost *:443> ServerAdmin webmaster@localhost SSLEngine on SSLCertificateFile /etc/apache2/apache.pem DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride All </Directory> <Directory /var/www/> Options -Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit, # alert, emerg. LogLevel warn CustomLog /var/log/apache2/access.log combined <Location /rutorrent> AuthType Digest AuthName "rutorrent" AuthDigestDomain /var/www/rutorrent/ http://<servername or IP>/rutorrent AuthDigestProvider file AuthUserFile /etc/apache2/htpasswd Require valid-user SetEnv R_ENV "/var/www/rutorrent" </Location> </VirtualHost> 

-Indexesclosures列出目录内容的能力。 你需要从你的configuration文件中删除它。