htaccess not found

Posted by clarkk on Server Fault See other posts from Server Fault or by clarkk
Published on 2012-06-30T06:19:21Z Indexed on 2012/06/30 9:17 UTC
Read the original article Hit count: 199

Filed under:
|
|

I have installed a Apache 2 (from webmin) server on Debian 6..

I have setup a virtual host db.domain.com on the server which works fine, but .htaccess doesn't work if you get access from the ip address and the directory is listed if no index.php is found?

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

Why is .htaccess omitted when you get access from the servers ip address?

httpd.conf

<Directory *>
    Options -Indexes FollowSymLinks
</Directory>

<VirtualHost *:80>
    ServerName db.domain.com
    DocumentRoot /var/www
</VirtualHost>

htaccess

order deny,allow
deny from all

© Server Fault or respective owner

Related posts about apache2

Related posts about .htaccess