Inets httpd and script security

Heinrich Venter <>
Mon Nov 14 11:28:32 CET 2005

I have found the solution to my problem below.  There were two things
1) The "AuthDBType plain" directive should have been "AuthDBType plain".
The match in mod_auth is on "AuthDBType "
2) If the auth_type is plain then mod_auth_plain assumes that
AuthGroupFile is defined.  If it is not then inets does not start up
with the following error.  I don't think this is the correct behaviour.

=SUPERVISOR REPORT==== 14-Nov-2005::11:51:20 ===
     Supervisor: {local,httpd_instance_sup_8888}
     Context:    start_error
     Reason:     {'EXIT',{function_clause,

So to get authentication on a script, the following config works

ErlScriptAlias /handler config
<Directory /handler/config>
AuthDBType plain
AuthUserFile /dir/to/passwd
AuthGroupFile /dir/to/group
AuthName Configuration
allow from all
require user administrator
require group admin


More information about the erlang-questions mailing list