I’m not sure what is wrong here, but I have the following conf:
# Root
<Directory /var/www/xxx/>
AllowOverride All
Header always append Directory Home
</Directory>
# images
<Directory /var/www/xxx/images/>
AllowOverride None
Order allow,deny
allow from all
Header always append Directory images
</Directory>
Inside the root dir I have an .htaccess file, to include it everywhere in the directory.
What I’m trying to do – is to exclude “images” dir from this configuration.
I’ve added a special header for every directory so I can debug it, and according to the CURL command below – it follow the rules correctly.
< HTTP/1.1 401 Authorization Required
< Directory: Home, images
< Last-Modified: Fri, 21 Sep 2012 09:47:28 GMT
< ETag: "9e81e5-4069-20b94c00"
< Accept-Ranges: bytes
< Content-Length: 16489
< Connection: close
< Content-Type: image/png
The problem is that I’m receiving 401 instead of 200OK, according to the headers ( Home, images ) – it first get the “All” and then should overwrite it with “None” – but it doesn’t, I’m still receiving the 401, what can be the problem here ?
By using the “Satisfy Any” I solved the problem of having no AUTH for a sub-directory