5.2 Basic Authorization
Sample in httpd.conf
<Directory /var/www/html/homelinux/alshop/test>
Auth_PG_host localhost
Auth_PG_port 5432
Auth_PG_database auctionline
Auth_PG_pwd_table users
Auth_PG_uid_field email
Auth_PG_pwd_field password
Auth_PG_encrypted off # Because we need to send the PW by email
AuthName Auctionline_Member_Area
AuthType basic
require valid-user
# X ErrorDocument 401
/public-bin/nph-errordocument.dbc?realm=Auctionline_Member_Area
ErrorDocument 401 /alshop/error401.cgi
</Directory>
|