in reply to Re: Setting "Domain" dynamically when using Apache2::AuthCookie
in thread Setting "Domain" dynamically when using Apache2::AuthCookie

If Apache2::AuthCookie with mod_perl: Apache2::PerlSections - write Apache configuration files in Perl

Then maybe

$VirtualHost{"www.yourdomain.com"} = { DocumentRoot => "/tmp/docs", ErrorLog => "/dev/null", WhatEverSatisfy => "Any", WhatEverDomain => ".yourdomain.com", Location => { "/" => { Allowoverride => 'All', Order => 'deny,allow', Deny => 'from all', Allow => 'from foo.com', }, "/protected" => { AuthType => 'Sample::Apache2::AuthCookieHandler', AuthName => 'WhatEver', ## might be "AuthenHandler" PerlAuthenHandler => "Sample::Apache2::AuthCookieHandler-> +authenticate", PerlAuthzHandler => "Sample::Apache2::AuthCookieHandler->a +uthorize", require => "valid-user", }, }, };

Maybe also idea to use prefix of "yourdomainAUC" for all those cookie auth vars

Replies are listed 'Best First'.
Re^3: Setting "Domain" dynamically when using Apache2::AuthCookie
by tosh (Scribe) on Sep 20, 2015 at 22:25 UTC
    I guess a couple customized apache configs is better than trying to be all elegant and complicated. Thanks!