title: Authentication with Python, Apache, and mod_wsgi
body: <p>I have been searching vigorously the last week in hopes of finding a solution to my problem. Originally, I had Python configured with CGI on my Windows, Apache, MySQL, and Python server. I understand that CGI is slow and additionally drops <strong>HTTP_AUTHORIZATION</strong> headers before executing the Python environment. I have since configured mod_wsgi and added the following to my httpd.conf:</p>
  
  <pre><code>WSGIScriptAlias /flex/entry "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/flex/entry.wsgi"
  WSGIPassAuthorization On
  </code></pre>
  
  <p>My understanding is that <strong>HTTP_AUTHORIZATION</strong> would normally now be accessible in Python via <code>os.environ['HTTP_AUTHORIZATION']</code>. However, this is not the case. </p>
  
  <p>Can someone please explain what I am missing/doing wrong?</p>
  
  <p>Thanks!
  Trent</p>