I have an issue where I am trying to set a test directory to authenticate using the AuthType Digest. I have been able to successfully complete this but only when the AuthName of .htaccess is one string entry.
Example .htaccess:
Example .htpasswd
Apache Authentication via HTTP Basic or Digest. Configuring Apache Authentication using either HTTP Basic or HTTP Digest. It's possible to protect based on either Directory (preferred) or Location. Directory is preferred, this way, if there are multiple web-accessible paths to the same directory they will all have the authentication enforeced. Digest authentication provides a more secure password system than Basic authentication, but only works with supporting browsers. As of November 2002, the major browsers that support digest authentication are Opera, MS Internet Explorer (fails when used with a query string), Amaya, Mozilla and Netscape since version 7. Since digest authentication is not as widely implemented as basic authentication.
If I change the Realm in .htpasswd and .htaccess AuthName to 'Gordon and' ..I get this error (from Apache logs/error.log)
I have tried encasing the Realm in single and double quotes marks to no avail, currently editing using Notepad++ but have also tried creating via the ht_digest.exe tool ...still no dice.
I have also looked on the Apache AuthType and ht_digest docs but maybe its not the right section as I can't seem to find any information on containing whitespaced realms.
Any pointers or advice would be appreciated, thanks.