Thanks for that, will run it up tomorrow. On 02/10/2013 7:35 PM, "Luca Rea" <[email protected]> wrote:
> > > ATS - Plugin.config: > authproxy.so --auth-transform=redirect --auth-host=127.0.0.1 --auth-port=80 > > > > Apache with postgreSQL: > > DBDriver pgsql > DBDParams "dbname=apacheauth host=127.0.0.1 port=5432 user=<user> > password=<password>" > > DBDMin 4 > DBDKeep 8 > DBDMax 20 > DBDExptime 300 > > <LocationMatch "^/+$"> > > #Apache continue looking for local page but it must return back 200 on > authentication succeded (ATS expect it!) -> rewrite all > RewriteEngine on > RewriteRule ^ /.noindex.html > > # core authentication and mod_auth_basic configuration > # for mod_authn_dbd > AuthType Digest > AuthName "My Proxy" > AuthDigestDomain / > AuthDigestProvider dbd > > # core authorization configuration > Require valid-user > > # mod_authn_dbd SQL query to authenticate a user and realm > AuthDBDUserRealmQuery \ > "SELECT password FROM authn WHERE username = %s AND realm = %s" > > Options -Indexes > ErrorDocument 403 /.noindex.html > </LocationMatch> > > <Directory /usr/share/httpd/noindex> > AllowOverride None > Require all granted > </Directory> > > Alias /.noindex.html /usr/share/httpd/noindex/index.html >
