Hi,
I have a very simple problem but cannot figure it out. I would like to password protect a vhost. This vhost is instaniated. I don't want to do it with .htaccess. I have created the realm and the context, but I always get "Authentication failed with user xxx". This is the relevant configuration:
<realmList>
<realm>
<type>file</type>
<name>Test</name>
<userDB>
<location>/path/to/users</location>
<maxCacheSize></maxCacheSize>
<cacheTimeout></cacheTimeout>
</userDB>
<note></note>
<groupDB>
<location></location>
<maxCacheSize></maxCacheSize>
<cacheTimeout></cacheTimeout>
</groupDB>
</realm>
</realmList>
<contextList>
<context>
<type>NULL</type>
<uri>/</uri>
<location></location>
<allowBrowse>1</allowBrowse>
<note></note>
<enableExpires></enableExpires>
<expiresDefault></expiresDefault>
<expiresByType></expiresByType>
<extraHeaders></extraHeaders>
<addMIMEType></addMIMEType>
<forceType></forceType>
<defaultType></defaultType>
<indexFiles></indexFiles>
<autoIndex></autoIndex>
<allowOverride></allowOverride>
<realm>Test</realm>
<authName></authName>
<required></required>
<accessControl>
<allow></allow>
<deny></deny>
</accessControl>
<authorizer></authorizer>
<addDefaultCharset>off</addDefaultCharset>
<defaultCharsetCustomized></defaultCharsetCustomized>
<rewrite>
<enable></enable>
<inherit></inherit>
<base></base>
<rules></rules>
</rewrite>
<enableIpGeo></enableIpGeo>
<apacheConf></apacheConf>
</context>
</contextList>
I have also created the users file and made sure the password is really correct.
Any hints?
Thanks
Daniel
I have a very simple problem but cannot figure it out. I would like to password protect a vhost. This vhost is instaniated. I don't want to do it with .htaccess. I have created the realm and the context, but I always get "Authentication failed with user xxx". This is the relevant configuration:
<realmList>
<realm>
<type>file</type>
<name>Test</name>
<userDB>
<location>/path/to/users</location>
<maxCacheSize></maxCacheSize>
<cacheTimeout></cacheTimeout>
</userDB>
<note></note>
<groupDB>
<location></location>
<maxCacheSize></maxCacheSize>
<cacheTimeout></cacheTimeout>
</groupDB>
</realm>
</realmList>
<contextList>
<context>
<type>NULL</type>
<uri>/</uri>
<location></location>
<allowBrowse>1</allowBrowse>
<note></note>
<enableExpires></enableExpires>
<expiresDefault></expiresDefault>
<expiresByType></expiresByType>
<extraHeaders></extraHeaders>
<addMIMEType></addMIMEType>
<forceType></forceType>
<defaultType></defaultType>
<indexFiles></indexFiles>
<autoIndex></autoIndex>
<allowOverride></allowOverride>
<realm>Test</realm>
<authName></authName>
<required></required>
<accessControl>
<allow></allow>
<deny></deny>
</accessControl>
<authorizer></authorizer>
<addDefaultCharset>off</addDefaultCharset>
<defaultCharsetCustomized></defaultCharsetCustomized>
<rewrite>
<enable></enable>
<inherit></inherit>
<base></base>
<rules></rules>
</rewrite>
<enableIpGeo></enableIpGeo>
<apacheConf></apacheConf>
</context>
</contextList>
I have also created the users file and made sure the password is really correct.
Any hints?
Thanks
Daniel