Hive/LiteSpeed Directory Indexing
How to enable directory indexing/browsing when using Hive + LiteSpeed?
With LiteSpeed the default behavior for a folder with no default index file is to display nothing at all.
In order to enable the LiteSpeed directory indexing is you need to:
- Turn on directory auto index, just change “Index Files” configuration
Auto Index => Yes Auto Index URI => /_autoindex/default.php
- Copy the directory “/usr/local/lsws/share/autoindex” to the chrooted environment for the user accounts otherwise the indexing will not work and you will get a blank page. The account basically needs the /usr/local/lsws/share/autoindex/ directory. However, it is not by default present in the Hive chrooted environment. Thus you need to copy this directory in the chroot for the server:
cp -rfa /usr/local/lsws/share/autoindex /var/suexec/baseos/usr/local/lsws/share/autoindex cp -rfa /usr/local/lsws/share/autoindex /root/baseos/usr/local/lsws/share/autoindex
Note that you should copy it both in the memory (/var/suexec/baseos) and the physical location of the baseos files ( /root/baseos) so the changes are preserved after a potential server reboot.