| 46 | == Troubleshooting == |
| 47 | |
| 48 | === Authentication issues while using Trac with mod_wsgi === |
| 49 | |
| 50 | ==== Symptom ==== |
| 51 | |
| 52 | HTTP authentication just does not want to work. The Authorization header is passed with the HTTP request, but is seems to be lost on the way. |
| 53 | |
| 54 | If you set the `loglevel` to `INFO`, then you will get this entry in your `trac.log`: |
| 55 | |
| 56 | {{{ |
| 57 | Trac[filter] INFO: HTTPAuthFilter: No/bad authentication data given, returing 403 |
| 58 | }}} |
| 59 | |
| 60 | It is already in Ticket #1169. I've quoted it here, since the solution is hard to find otherwise. |
| 61 | |
| 62 | ==== Cause ==== |
| 63 | |
| 64 | If you're using `mod_wsgi`, authorization information is stripped before passing to the WSGI application. |
| 65 | |
| 66 | === Solution === |
| 67 | |
| 68 | Turn `WSGIPassAuthorization On` in your `Apache` configuration for it to work. |
| 69 | |
| 70 | See also [http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives ConfigurationDirectives] |
| 71 | |