Bug 53002 - <Location> and auth_form (trailing slash problem?)
Summary: <Location> and auth_form (trailing slash problem?)
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.1
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-29 15:14 UTC by Thomas Stein
Modified: 2012-03-29 15:14 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Stein 2012-03-29 15:14:39 UTC
Hello.

I have a virtual host configured with a location set to use auth_form:

        <Location /munin>
                #DirectorySlash Off
                AuthFormProvider file
                ErrorDocument 401 /login.shtml
                AuthUserFile /etc/apache2/.htpasswd 
                AuthType form
                AuthName Munin 
                #AuthFormLoginRequiredLocation http://xenbeere.de/login.html
                Session On
                SessionCookieName session path=/
                # SessionCryptoPassphrase secret
                Require valid-user

        </Location>

When i go to http://host/munin everything works fine. Auth form needs to filled in and after that the page shows up.

But if i use hhtp://host/munin/ (note the trailing slash) the auth form shows up and after entering the credentials "Internal Server Error" is shown. The log says:

[Thu Mar 29 16:12:35.665238 2012] [core:error] [pid 5422:tid 140602179712768] [client xxx.xxx.xxx.xxx:58670] AH00027: Buggy authn provider failed to set user for /munin/index.html.var, referer: http://host/munin/

Even weirder. If i set this authenticator in .htaccess everything is working fine.

Any hints? Do i something stupid again?

best regards
t.