I'd like to have a way of viewing the directory that mod_autoindex produces of a directory that has an index.html file.
E.g. I go to:- http://www.isbd.net/someDirectory
and I get to see the contents of the index.html file that's there. However there's various other files, not linked to from index.html, that I want to be able to see and/or use sometimes. So it would be very useful if I could get to see the directory listing that I would see if the index.html file didn't exist.
This is just for my home system's web server and for my own use so security/performance isn't a big issue and I can hack the httpd.conf file as much as I like.
On Thursday 29 March 2007 16:20, Chris G wrote:
I'd like to have a way of viewing the directory that mod_autoindex produces of a directory that has an index.html file.
E.g. I go to:- http://www.isbd.net/someDirectory
and I get to see the contents of the index.html file that's there. However there's various other files, not linked to from index.html, that I want to be able to see and/or use sometimes. So it would be very useful if I could get to see the directory listing that I would see if the index.html file didn't exist.
This is just for my home system's web server and for my own use so security/performance isn't a big issue and I can hack the httpd.conf file as much as I like.
The DirectoryIndex directive allows you to choose the name of the index file. (Or you could just rename the index.html file.)
The problem is that Apache needs to be able to distinguish between whether you want to view the contents of the index.html file or view its mod_authoindex output. You can't have two possible interpretations of "http://www.isbd.net/someDirectory" because its only one URL (except through content negotiation but this would be a hack: http://httpd.apache.org/docs/2.0/content-negotiation.html)
I guess you could use the <Location> directive to match some specific pattern (e.g. "/someDirectory/idx") and then use mod_autoindex directives inside that. (This assumes that there /are/ directives for requesting the functions of mod_autoindex, which, having just checked the docs http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html, there may not be)
Sorry.
Richard.
Chris G,
On 29 Mar 2007, at 4:20 pm, Chris G wrote:
I'd like to have a way of viewing the directory that mod_autoindex produces of a directory that has an index.html file.
E.g. I go to:- http://www.isbd.net/someDirectory
and I get to see the contents of the index.html file that's there. However there's various other files, not linked to from index.html, that I want to be able to see and/or use sometimes. So it would be very useful if I could get to see the directory listing that I would see if the index.html file didn't exist.
How about setting the directory index to not be index.html? Google for DirectoryIndex apache2 and you should find an answer.
Thanks,
David