]> scripts.mit.edu Git - www/raw.git/blob - faq/90.mdwn
Import from TextPattern
[www/raw.git] / faq / 90.mdwn
1 [[!meta title="How do I access the Authorization headers from a FastCGI?"]]
2 Apache by default does not pass the Authorization header through to
3 FastCGI scripts. If you want access to it (perhaps for use with
4 Ruby on Rails), you need to add the following to a .htaccess file:
5
6     RewriteCond %{HTTP:Authorization} ^(.+)
7     RewriteRule ^(.*)$ $1 [E=HTTP_AUTHORIZATION:%1,PT]
8
9
10