Pure litespeed server (no apache) fancyindex options ?

eva2000

Well-Known Member
#1
On a pure litespeed only web server, is there an equivalent for apache's fancyindex options as follows ?

Code:
IndexOptions FancyIndexing HTMLTable VersionSort NameWidth=* SuppressDescription
 

eva2000

Well-Known Member
#3
A default php script is provided with same Look and Feel as Apache's mod_autoindex. The script is located at /path/to/lsws/share/autoindex/default.php

http://www.litespeedtech.com/how-tos.html#qa_autoindex
thanks i read that and still not sure, how do i make it so that directories without index page list contents but with named column extended to the character width of the file name (apache NameWdith=*) and descriptions column is hidden/removed ?
 

webizen

Well-Known Member
#5
That default.php (e.g. /usr/local/lsws/share/autoindex/default.php) provides you an example for the things you want as follows:

Code:
class UserSettings
{
    var $HeaderName = 'HEADER';
    var $ReadmeName = 'README';

    var $Exclude_Patterns =
        array( "/^(\.)|(_vti_)/",
               '/(\~)|(\#)|(\,v)|(\,t)|(\.lsz)$/',
               "/^HEADER/",
               "/^README/",
               '/^(RCS)|(CVS)$/');

    var $Time_Format = " d-M-Y H:i ";
    var $IconPath = "/_autoindex/icons";
    var $nameWidth = 28;
    var $nameFormat;

    function UserSettings()
    {
        $this->nameFormat = '%-' . ($this->nameWidth + 4) . '.' . ($this->nameWidth + 4) .'s';
    }
}
 
Top