]> scripts.mit.edu Git - www/raw.git/commitdiff
Import from TextPattern
authorAlexander W Dehnert <adehnert@mit.edu>
Sat, 13 Feb 2010 12:17:06 +0000 (07:17 -0500)
committerAlexander W Dehnert <adehnert@mit.edu>
Sat, 13 Feb 2010 12:17:06 +0000 (07:17 -0500)
faq/90.mdwn [new file with mode: 0644]

diff --git a/faq/90.mdwn b/faq/90.mdwn
new file mode 100644 (file)
index 0000000..c2142c0
--- /dev/null
@@ -0,0 +1,10 @@
+[[!meta title="How do I access the Authorization headers from a FastCGI?"]]
+Apache by default does not pass the Authorization header through to
+FastCGI scripts. If you want access to it (perhaps for use with
+Ruby on Rails), you need to add the following to a .htaccess file:
+
+    RewriteCond %{HTTP:Authorization} ^(.+)
+    RewriteRule ^(.*)$ $1 [E=HTTP_AUTHORIZATION:%1,PT]
+
+
+