[NANOWEB DOCUMENTATION]

NANOWEB, the aEGiS PHP web server

mod_fb

mod_fb is the »filebrowser« (directory listing generator) that got extracted from the main server (in 1.8.0-dev) to a module. As it now doesn't intermix with core server code it's easier to extend and more functions will be implemented in near future.

It currently takes these configuration directives:



FileBrowser

Syntax: FileBrowser = 1
Context: Server Config

Activates or Disables the automatic generation of directory listings. You shouldn't disable it however, as this is a essential service of nanoweb.
If a file with a name allowed in the DirectoryIndex directive exists in the requested directory no listing will be generated of course.



FbDescFile

Syntax: FbDescFile = .desc
Context: Server Config, Virtual Hosts

Descriptions of each file out of a directory may be given in the file specified here. Such a decription file should look like:
filename.ext desc of this file
file2 ...



FbShowDotFiles

Syntax: FbShowDotFiles = 1
Context: Server Config, Virtual Hosts

This tells mod_fb to include files which names start with a dot to be included in directory listings. On UNIX machines these »dotfiles« should be treaten as invisible files by standard programs; and because nanoweb keeps some of its per-directory configurations in .nwaccess and .nwauth you probably want to set this directive to the default of 1.



FbSortOrder

Syntax: FbSortOrder = name | size | date [ desc ]
Context: Server Config, Virtual Hosts

Directory listings are sorted by mod_fb according to this setting (»name« is the default). The use of »desc« reverses the order.



FbWelcomeFile

Syntax: FbWelcomeFile = .welcome
Context: Server Config, Virtual Hosts

Whenever a directory listing (»filebrowser«) is to be sent back to the client, the server searches for a file with the hereby given name to be included in the sent output.




NANOWEB, the aEGiS PHP web server

Index