diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-17 10:52:11 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-17 10:52:11 -0700 |
commit | 1c942afa60b7ec5a8f0855a14d32110837270119 (patch) | |
tree | 8c408eb36595dcad36b649bc7d730b590c74846d /htaccess.sample | |
parent | b9fc4c24b44ba8a83448f3ea8e0698c689d74d19 (diff) |
Workaround for HTTP authentication in the API when running PHP as CGI/FastCGI. Example rewrite lines added as comments in htaccess.sample, API tweaked to accept alternate environment var form.
Diffstat (limited to 'htaccess.sample')
-rw-r--r-- | htaccess.sample | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/htaccess.sample b/htaccess.sample index 37eb8e01e..18a868698 100644 --- a/htaccess.sample +++ b/htaccess.sample @@ -5,6 +5,11 @@ RewriteBase /mublog/ + ## Uncomment these if having trouble with API authentication + ## when PHP is running in CGI or FastCGI mode. + #RewriteCond %{HTTP:Authorization} ^(.*) + #RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1] + RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php?p=$1 [L,QSA] |