I'm not sure what I am doing wrong, but I have the following files in a directory served by Apache:
When every file except htaccess.bz2 and .taccess.bz2 return the following error when I try to download them:
I tried adding the following directives into the virtual host configuration:
The problem is still the same. What am I doing wrong? Is it not possible to download files whose names start with .htaccess?
Code:
2 -rwxrwxrwx 1 daniel daniel 55B May 15 20:25 htaccess.bz2
2 -rwxrwxrwx 1 daniel daniel 55B May 15 20:25 .taccess.bz2
2 -rwxrwxrwx 1 daniel daniel 55B May 15 20:25 .htaccess1.bz2
4 -rwxrwxrwx 1 daniel daniel 55B May 15 20:25 .htaccess.bz2
2 drwxr-xr-x 60 root wheel 1.5k May 15 21:02 ..
2 drwxr-xr-x 2 www www 512B May 15 21:25 .
When every file except htaccess.bz2 and .taccess.bz2 return the following error when I try to download them:
Code:
client denied by server configuration: /usr/local/www/test/.htaccess1.bz2
I tried adding the following directives into the virtual host configuration:
Code:
AccessFileName .mysettings
<Directory "/usr/local/www/test">
Options All Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Files ".htaccess.bz2">
ForceType application/octet-stream
Header set Content-Disposition attachment
</Files>
The problem is still the same. What am I doing wrong? Is it not possible to download files whose names start with .htaccess?