Piratebox: edit lighttpd directory listing

  • 0
There is a work around to allow you to customize the shared folder directory listing by editing /opt/piratebox/conf/lighttpd/lighttpd.conf

Add the following lines so lighttpd reads a HEADER.txt file.
dir-listing.auto-layout = "disable"
dir-listing.show-header = "enable"
dir-listing.hide-header-file = "enable"
dir-listing.encode-header = "disable"

Then create a HEADER.txt file under /opt/piratebox/www/Shared/ and enter a style sheet.
<style type="text/css">
.body {}
</style>
I used a style sheet from http://redmine.lighttpd.net/boards/3/topics/5418 as a proof of concept. You will have to copy the HEADER.txt to subdirectories too so that they match.
Restart lighttpd.
/etc/init.d/piratebox stop
/etc/init.d/piratebox start



No comments:

Post a Comment