You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Uwe Dippel <ud...@uniten.edu.my> on 2005/03/13 04:28:47 UTC
[users@httpd] .htaccess stops working
After the latest updates from my distro, the basic authentication has
stopped working in Apache. I didn't touch it; even (re-)generated from
scratch in that directory
It doesn't show the/any password-prompt, simply permitting access to
anybody.
I'm running TAO-Linux; just took over the adminship 5 days ago.
Here I post for hints about debugging; and possible oversights on my side.
The recreated file (simplified, just for testing) reads
AuthType Basic
AuthName "Authenticate"
AuthUserFile /usr/local/apache/passwd/passwords
Require user ME
<Limit GET POST PUT>
require valid-user
</Limit>
Permissions:
-rwxr-xr-x 1 root root 161 Mar 12 19:21 .htaccess
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: Re: .htaccess stops working
Posted by Uwe Dippel <ud...@uniten.edu.my>.
On Tue, 15 Mar 2005 09:38:49 -0500, Joshua Slive wrote:
> Yes. Put an obvious syntax error like "FooBar" in .htaccess. If it
> is being read, apache should return a 500 error and an error log
> message whenever you try to access this directory.
Good idea, thanks !
Problem solved: httpd.conf had been overwritten.
Uwe
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Re: .htaccess stops working
Posted by Joshua Slive <js...@gmail.com>.
On Tue, 15 Mar 2005 22:32:00 +0800, Uwe Dippel <ud...@uniten.edu.my> wrote:
> On Sun, 13 Mar 2005 10:11:56 -0500, Joshua Slive wrote:
>
> > Check the AllowOverride setting in httpd.conf.
>
> Done, but looks good. Any way to get it logged ? So that I can see if the
> .htaccess is at least seen - read - processed - ?
Yes. Put an obvious syntax error like "FooBar" in .htaccess. If it
is being read, apache should return a 500 error and an error log
message whenever you try to access this directory.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
[users@httpd] Re: .htaccess stops working
Posted by Uwe Dippel <ud...@uniten.edu.my>.
On Sun, 13 Mar 2005 10:11:56 -0500, Joshua Slive wrote:
> Check the AllowOverride setting in httpd.conf.
Done, but looks good. Any way to get it logged ? So that I can see if the
.htaccess is at least seen - read - processed - ?
I'd like to help myself, my users and TAO-Linux to get it back for
everyone.
> But note that your use of <Limit GET POST PUT> shows that you have not
> read the documentation. Please read the docs on the <Limit> directive
> to find out why it shouldn't be used.
Thanks, I'll also study this one !
Uwe
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] .htaccess stops working
Posted by Joshua Slive <js...@gmail.com>.
On Sun, 13 Mar 2005 11:28:47 +0800, Uwe Dippel <ud...@uniten.edu.my> wrote:
> After the latest updates from my distro, the basic authentication has
> stopped working in Apache. I didn't touch it; even (re-)generated from
> scratch in that directory
> It doesn't show the/any password-prompt, simply permitting access to
> anybody.
>
> I'm running TAO-Linux; just took over the adminship 5 days ago.
> Here I post for hints about debugging; and possible oversights on my side.
>
> The recreated file (simplified, just for testing) reads
>
> AuthType Basic
> AuthName "Authenticate"
> AuthUserFile /usr/local/apache/passwd/passwords
> Require user ME
>
> <Limit GET POST PUT>
> require valid-user
> </Limit>
Check the AllowOverride setting in httpd.conf.
But note that your use of <Limit GET POST PUT> shows that you have not
read the documentation. Please read the docs on the <Limit> directive
to find out why it shouldn't be used.
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org