Default Apache index page parameters

2.7k views Asked by At

I was very surprised that I couldn't find this answer on Google.

I have seen someone access the default Apache index page (no index.html present, so it just shows the directory listing) with query string parameters. The URL they used was similar to:

http://example.com/?C=M;O=D

It looks like O=D means "order = descending," since it reversed the order of the list, but I want to know what other parameters can be passed in, and what they mean. Is this documented somewhere? I couldn't find it.

1

There are 1 answers

1
Julien On BEST ANSWER

From http://www.gforums.net

"C=M;O=D" is the query string passed in to the URLs that are browseable. It's used to sort the files list.

O is the sort order, which can either be A or D for ascending and descending respectively.

C is for column name which is to be sorted. It can take the following values:

N - Name (file name) column

M - Last Modified column

S - Size column

D - might be for Description

You might want to have a look at this : https://httpd.apache.org/docs/2.2/mod/mod_autoindex.html