Hello,I have a working mod_authn_dbm as per example http://httpd.apache.org/docs/2.2/mod/mod_authn_dbd.html#example
Also in my config file I have an entry: <Directory "/var/www/domain.com/cgi-bin"> Options Indexes FollowSymLinks AllowOverride None Order deny,allow Deny from all Allow from 192.168.1.2 </Directory> #Authentication Section <Directory /var/www/domain.com/cgi-bin/> # #mod_auth configuration for authn_dbd AuthType Basic AuthName "PRIVATE" AuthBasicProvider dbd #authz configuration Require valid-user #SQL query to verify a user #(note: DBD drivers recognise both stdio-like %s and native syntax) AuthDBDUserPWQuery "select pass from users where email = %s" </Directory>So the first rule only allows host 192.168.1.2 to connect to this folder and the second directive authenticates against the database.
Is there a way to merge the two into one directive and also what is the proper way to list multiple IP addresses?
Is it like Allow from 192.168.1.2, 192.168.1.4 .....Can this list also be looked up from the database? Perhaps is the AuthDBDUserRealmQuery
Cheers -- Norman Khine%>>> "".join( [ {'*':'@','^':'.'}.get(c,None) or chr(97+(ord(c)-83)%26) for c in ",adym,*)&uzq^zqf" ] )
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx