All I can suggest right now is move the:

  WSGIPassAuthorization On

outside of all virtual hosts rather than restricting it to just one.

If this works though, suggests that virtual host mapping by Apache
isn't working as you expect.

You could also add:

  SetEnv XXX YYY

in Apache configuration, inside of virtual host, but also then outside
of virtual host, to verify that that setting even carrying through
into WSGI environment when that is used in different contexts.

Overall, as far as I know all that needs to be done on WebFaction is
set WSGIPassAuthorization. Ie., nothing need in nginx front end.

Graham

2009/12/23 Jumpfroggy <[email protected]>:
> On Dec 22, 4:46 pm, Graham Dumpleton <[email protected]>
> wrote:
>> I'll have a look at the information you sent, but suggest that rather
>> than use a simplified Django test program, use a raw WSGI application
>> to dump out environment passed. See:
>>  http://code.google.com/p/modwsgi/wiki/DebuggingTechniques#Displaying_...
>> That will take Django out of the picture.
>> Graham
>
> Graham,
> Thanks so much for your help.  It's a shame I'm not great at reading
> the mod_wsgi docs, because there's a ton of helpful stuff in there
> that I just seem to gloss over.
>
> I've added that test application in and below are the results.  Same
> thing: the "FAKE" header shows up as "HTTP_FAKE", but the
> HTTP_AUTHORIZATION header is missing.  I'm going to contact my hosting
> co. to make sure it's not a problem on their side, but I have a hunch
> it's something I've done wrong in the config.
>
> -James
>
> BTW, Thanks Graham for being so involved with mod_wsgi.  It's very
> useful, and it's nice to find a project that's so 'alive'.
>
> -- Pasted from the debugging application: --
>        URL: http://test.(domain).com
>        headers: {'HTTP_AUTHORIZATION':
> '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! HTTP_AUTHORIZATION', 'FAKE':
> '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! FAKE'}
>        Results:
>        ----------------------------------------
>        PID: 13460
>        UID: 654
>        GID: 654
>
>        DOCUMENT_ROOT: '/path/to/htdocs'
>        GATEWAY_INTERFACE: 'CGI/1.1'
>        HTTP_ACCEPT_ENCODING: 'identity'
>        HTTP_CONNECTION: 'close'
>        HTTP_FAKE: '!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! FAKE'
>        HTTP_HOST: 'test.(domain).com'
>        HTTP_USER_AGENT: 'Python-urllib/2.5'
>        HTTP_X_FORWARDED_FOR: '(removed)'
>        PATH: '(removed)'
>        PATH_INFO: '/'
>        PATH_TRANSLATED: '/path/to/test.wsgi/'
>        QUERY_STRING: ''
>        REMOTE_ADDR: '127.0.0.1'
>        REMOTE_PORT: '57509'
>        REQUEST_METHOD: 'GET'
>        REQUEST_URI: '/'
>        SCRIPT_FILENAME: '/path/to/test.wsgi'
>        SCRIPT_NAME: ''
>        SERVER_ADDR: '127.0.0.1'
>        SERVER_ADMIN: 'admin@(domain).com'
>        SERVER_NAME: 'test.(domain).com'
>        SERVER_PORT: '80'
>        SERVER_PROTOCOL: 'HTTP/1.0'
>        SERVER_SIGNATURE: ''
>        SERVER_SOFTWARE: 'Apache/2.2.14 (Unix) mod_wsgi/2.5 Python/2.5.4'
>        mod_wsgi.application_group: 'test.(domain).com|'
>        mod_wsgi.callable_object: 'application'
>        mod_wsgi.listener_host: ''
>        mod_wsgi.listener_port: '12345'
>        mod_wsgi.process_group: 'test.(domain).com'
>        mod_wsgi.reload_mechanism: '1'
>        mod_wsgi.script_reloading: '1'
>        mod_wsgi.version: (2, 5)
>        wsgi.errors: <mod_wsgi.Log object at 0xb7f3f608>
>        wsgi.file_wrapper: <built-in method file_wrapper of mod_wsgi.Adapter
> object at 0xb7f10650>
>        wsgi.input: <mod_wsgi.Input object at 0xb7f2b4a8>
>        wsgi.multiprocess: True
>        wsgi.multithread: True
>        wsgi.run_once: False
>        wsgi.url_scheme: 'http'
>        wsgi.version: (1, 0)
>        ----------------------------------------
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "modwsgi" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/modwsgi?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/modwsgi?hl=en.


Reply via email to