[sf-perl] time ordered web directory listing
Daniel Lo
woof at danlo.com
Thu Aug 16 11:01:23 PDT 2007
Hello David,
I would check out the IndexOptions in the apache module configuration.
The option you are looking for appears to be:
IndexOrderDefault directive
http://httpd.apache.org/docs/1.3/mod/mod_autoindex.html#indexoptions
-daniel
Thursday, August 16, 2007, 10:55:00 AM, you wrote:
DA> greetings,
DA> [this is more of an apache question, than a perl question...]
DA> i have a perl program, each invocation of which creates a new
DA> directory in a directory tree accessible to my cow-orkers on a web
DA> server in our company intranet. i'd like for the user to see files in
DA> descending time order (i.e., latest at the top) when they navigate to
DA> any directory in the tree.
DA> is there a way to have apache (on linux) tack append this to the url:
DA> ?C=M;O=D
DA> every time the user clicks on a directory when they're navigating this
DA> particular tree?
DA> at the suggestion of a local sysadmin, i tried having the program
DA> write an .htaccess file to the directory it generates. the contents
DA> of the .htaccess file:
DA> RewriteEngine on
DA> RewriteRule (.*) ?C=M;O=D [L]
DA> but it doesn't have any effect on the url.
DA> any ideas on how to accomplish my goal?
DA> thanks,
DA> david
--
Best regards,
Daniel mailto:woof at danlo.com
We must make the world honest before we can honestly say to our children that honesty is the best policy. -Bernard Shaw
More information about the SanFrancisco-pm
mailing list