Question on downloads url/digest/realm



I am trying to set up a separate downloads link which is password protected. I have done the following

I have created a file in /etc/apache2/sites-enabled called downloads.conf

Alias /downloads “/srv/rutorrent/home/downloads/”
<Directory /srv/rutorrent/home/downloads/>
Options Indexes FollowSymLinks MultiViews
AuthType Digest
AuthName "downloads"
AuthUserFile '/etc/htpasswd.dl’
Require valid-user
AllowOverride None
Order allow,deny
allow from all

The /srv/rutorrent/home/downloads/ points to /home/user/torrents/rtorrent as a soft link.

I created the /etc/htpasswd.dl with the htdigest command with the realm “downloads”.

When I try to access it with the userid/password I just created I get the following error message in the apache logs.

[Thu Mar 30 10:45:50.305285 2017] [auth_digest:error] [pid 15446] [client a.b.c.d:25011] AH01788: realm mismatch - got downloads' but expectedrutorrent’

I am not sure what I am doing wrong. Any thoughts appreciated.