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

You are currently connected to