Try:

  WSGIHandlerScript httpd/unix-directory /some/path/autoindex.wsgi

I am not sure of the ordering though. The mod_autoindex module hooks as:

      ap_hook_handler(handle_autoindex,NULL,NULL,APR_HOOK_MIDDLE);

which is the same as mod_wsgi. Which goes first may be dictated by
which LoadModule appear first or last. So, play with the order of the
LoadModule lines.

You will need to look at the variables as to which describes the
directory mapped to.

Graham

On 30 March 2010 16:55, Deron Meranda <[email protected]> wrote:
> I was wondering if there's an easy way to use mod_wsgi to create
> a custom directory autoindexer, much as the Apache
> mod_autoindex does?  Though I don't necessarily need the
> hooks into the Apache configuration directives.
>
> I can get close now, but it seems like I'm having to do more
> work than should be necessary.
>
> Note that I want Apache to serve existing files normally, but if
> there request is for a directory and there is no suitable directory
> index file, then I'd like it to call a wsgi application.
>
> I'd like to be able to do this without having to put any files
> into each directory (no .htaccess or index.wsgi).  Obviously, its
> easy if you can put files in there.
> --
> Deron Meranda
>
> --
> 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