$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->authorize", require => "valid-user", }, }, };