Not sure it helps, but WSGIAccessScript might be able to be hijacked
to do what OP required. One would ignore the hostname bit and just
interrogate the environ to validate stuff and return True or False.
Returning false will cause HTTP_FORBIDDEN to be returned. If True,
flows through to subsequent handlers. You can't do a custom error page
from it, but you could use ErrorDocument for forbidden error status to
generate one.

As to further changes to mod_wsgi itself to support further hooking in
Apache, that will almost certainly never happen. It has already got
too messy as it is.

Graham

On 19 October 2010 18:46, Deron Meranda <[email protected]> wrote:
> Yes, I too have had similar issues with converting complex
> mod_python-based auth* code into something equivalent in mod_wsgi. In
> my case I was using the mod_python PythonAccessHandler directive
> (along with PythonOption directives).
>
> Graham and I had a somewhat lengthy exchange on this mailing list back
> in mid-March 2010; with lots of interesting discussion; and a teaser
> from Graham:
>
>   "...I am still contemplating various things and not much time to write
>  actual code, so I'll have more to say about all this another time when
>  have worked out what to do."
>
> Not that I expect him to remember or that he should've been doing
> anything; he's certainly been busy enough supporting the main
> functionality that 99% of everybody else needs and championing the
> whole WSGI community. Nonetheless it's still left me curious.
>
> I have more time now so I really should dive back into this issue more
> seriously and see if I can come up with something constructive.
>
> --
> Deron Meranda
> http://deron.meranda.us/
>
> --
> 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