I have an Apache2 vhost with the following Directory config:
<Directory /path/to/docroot> AuthType Basic AuthName styleguide AuthUserFile /etc/apache2/extras/ok_users Require valid-user Require group guest Order allow,deny Allow from 184.108.40.206 Satisfy any </Directory>
That works fine for all directories under the docroot, apart from one directory which is a symlink to a place outside of the docroot (/var/www/directoryname). Any requests for files in this directory throws up the auth dialogue. Once it's authenticated, it works fine.
I've used symlinks before in this way, but not encountered this from Apache before. Is there something about the symlink I should check for? Perhaps it's nothing to do with the symlink?