NANOWEB, the aEGiS PHP web server


Using this module you can use the .htpasswd authentication files from apache webserver within nanoweb. These authentication files differ only slightly from the nanoweb .nwauth files (which still can be used instead).
As the other authentication modules this one must not only be loaded, but also activated with the AuthRequire directive in one of your configuration files (main conf, vhosts.conf or .nwaccess files):

AuthRealm = realm name (will be shown as info text in most browsers)

# use the apache compatible auth scheme
AuthRequire = HTPASSWD

# the login and password pairs are
# kept in this file:
AuthHtpasswdFilename = /var/www/vhosts/www.example.com/admin/.htpasswd 

IT is more secure to give the full path to the .htpasswd file (may have a different file name of course). Apache`s per-directory password files must look like:

So you see, only the first line distincts this the original nanoweb authentication files. The passwords should be encrypted witg the standard crypt() system call (DES passwords).

NANOWEB, the aEGiS PHP web server