please try:
1. copy the default.php to your home folder
Code:
cp /usr/local/lsws/share/autoindex/default.php /home/myusername/test/myindex.php
2.edit .htaccess in your document root -- assume it's ~/public_html/.htaccess
add one line:
Code:
alias /_autoindex/default.php /home/myusername/test/myindex.php
3.edit /home/myusername/test/myindex.php
change:
Code:
function readDirList( $path, &$excludes, &$map )
{
$handle = opendir( $path );
to
Code:
function readDirList( $path, &$excludes, &$map )
{
$perms = fileperms($path);
if(($perms & 0x0004)==0)
{
return null;
}
$handle = opendir( $path );
Has tested above code sample at my local lsws. Please share with us if it works at your end as well.