没有findhtaccess

我在Debian 6上安装了Apache 2(从webmin)服务器。

我已经在服务器上设置了一个虚拟主机db.domain.com工作正常,但.htaccess不起作用,如果你从IP地址访问和目录列出,如果没有findindex.php?

 db.domain.com -> 403 forbidden xxx.xxx.xxx.xxx -> gets access to the server 

为什么从服务器IP地址获取访问权时忽略.htaccess?

httpd.conf文件

 <Directory *> Options -Indexes FollowSymLinks </Directory> <VirtualHost *:80> ServerName db.domain.com DocumentRoot /var/www </VirtualHost> 

htaccess的

 order deny,allow deny from all 

也许你只需要做一个

 /etc/init.d/apache2 reload 

通过删除/etc/apache2/sites-available/default的defalut vhost来解决这个问题