[RFC] [PATCH] Autoindex: support sorting using URL parameters
Peter Wu
lekensteyn at gmail.com
Wed Jan 30 21:02:28 UTC 2013
On Wednesday 30 January 2013 22:54:29 Valentin V. Bartenev wrote:
> I would prefer something like "autoindex_sort" directive
>
> autoindex_sort criterion [ order ];
>
> with variables support.
>
> And if user want Apache-like behavior then he will be able to configure
> it like this:
>
> map $arg_C $criteria {
> default name;
> M modified;
> S size;
> }
>
> map $arg_O $ord {
> default asc;
> D desc;
> }
>
> autoindex_sort $criteria $ord;
Nice idea, definitively worth implementing. And for the ";" thing, that could
be done with a rewrite right?
What is your opinion on extending the autoindex module with support for adding
a header with clickable links or something fancy like that?
Regards,
Peter
More information about the nginx-devel
mailing list