note 78444 deleted from features.http-auth by cmb
| From: | cmb@php.net | Date: | Sun, 25 Aug 2019 09:03:07 +0000 |
| Subject: | note 78444 deleted from features.http-auth by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211994@lists.php.net to get a copy of this message | ||
Note Submitter: mt at shrewsbury dot org dot uk
----
On my servers here, the standard rewrite spell
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization},L]
to set $_SERVER[REMOTE_USER] with digest authentication results in the entire digest being bundled
into $_SERVER[REMOTE_USER]
I have used this :
RewriteCond %{HTTP:Authorization} username=\"([^\"]+)\"
RewriteRule .* - [E=REMOTE_USER:%1,L]
And it seems to work successfully.