scripts.mit.edu

MIT SIPB Script Services for Athena

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]
Previous:
Next:
© 2004-2017, the SIPB scripts.mit.edu project.
These pages may be reused under either the GFDL 1.2 or CC-BY-SA 3.0.
Questions? Contact scripts@mit.edu.

You are currently connected to pancake-bunny.mit.edu.