Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release-src > by-pkgid > 36e57c72dcc649305da72b6b043778bc > files > 1

apache-mod_auth_memcookie-1.0.2-5mdv2010.1.src.rpm

<IfDefine HAVE_AUTH_MEMCOOKIE>
    <IfModule !mod_auth_memcookie.c>
	LoadModule mod_auth_memcookie_module	extramodules/mod_auth_memcookie.so
    </IfModule>
</IfDefine>

<IfModule mod_auth_memcookie.c>

    <Location />
	Auth_memCookie_CookieName myauthcookie
	Auth_memCookie_Memcached_AddrPort 127.0.0.1:11000

	# to fix header for php buggy authentification mecanism
	Auth_memCookie_SilmulateAuthBasic on

	# to redirect unauthorized user to the login page
	ErrorDocument 401 "/gestionuser/login.php"

	Auth_memCookie_Authoritative on
	AuthType Cookie
	AuthName "Login Intranet DT"
    </Location>

</IfModule>

<Location "/myprotectedurl">
    require valid-user
</Location>

<Location "/myprotectedurlgroup1">
    require group group1
</Location>