Why doesn't my html directory list its contents?

For security and privacy reasons, our web servers no longer give a directory listing when the URL of a directory is requested. They now either display the index file in that directory, or they give a permissions error.

If you wish to provide a clickable directory listing in your web site, you can use the /usr/local/bin/genindexhtml utility. It creates an index.html file containing the directory listing of the current directory in HTML.

To refresh the listing every four hours, you could use the following cron job:

11 */4 * * * cd $HOME/html/notes && /usr/local/bin/genindexhtml
© Computing and Educational Technology Services