Can you provide the actual Apache configuration showing mod_wsgi
directives and any Alias directives corresponding to the protected
directory. Ensure that you preserve the order in which they appear in
the file.
Graham
On 5 October 2012 08:51, Jeff Dyke <
jeff...@gmail.com> wrote:
> I have a protected directory, say
http://example.com/protected
> This has indexing enabled and people use it to download files and its
> protected by Basic Authentication
>
> I would like to use WSGIScriptAlias to send any requests to
> /protected/python_file to /server/root/python/python_file.py Which already
> exists in another conainter and services requests all day. Ultimately what
> i'm trying to do is take advantage of the Basic Auth, but allow them (after
> authentication) to have access to python_file.py
>
> I have tried this:
> WSGIScriptAlias /protected/python_file /server/root/python/python_file.py,
> but this seems to return a 404, seemingly from WSGI b/c its different then
> apache's 404 page
>
> If it call
http://example.com/protected/python_file it gives me simply
> "Could not Find:", which i assume comes from WSGI, if i add .py
> (
http://example.com/protected/python_file.py) i get apache's 404 page.
>
> Ultimately the question is, is this set up possible, both to have them
> authenticate and to execute a python file, via POST, that is not in the
> /protected/ directory.
>
> Hope i explained that OK and thanks for any pointers.
>
> --
> You received this message because you are subscribed to the Google Groups
> "modwsgi" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/modwsgi/-/ao5WQGyab9wJ.
> To post to this group, send email to
mod...@googlegroups.com.
> To unsubscribe from this group, send email to
>
modwsgi+u...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/modwsgi?hl=en.