NANOWEB, the aEGiS PHP web server


The authentication schema first introduced in nanoweb was the use of nanoweb authentication files™ often named .nwauth.
You still can use these authentication files, when you load and activate this module in one of your configuration files (nanoweb.conf, vhosts.conf, .nwaccess):

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

# use the .nwauth module
AuthRequire = NWAUTH

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

You really should give the full path to the .nwauth file (can have another file name of course). Such a file should look like:


Remember that the first line isn't taken into account (it formerly contained the auth realm name). des-password means that the password has been encrypted using the standard crypt() system call.

There is a small utility within the nanoweb tarball, which sould ease creation of this type of authentication files.

NANOWEB, the aEGiS PHP web server