You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Niklas Janzon <ya...@home.se> on 2003/06/16 04:20:12 UTC

[users@httpd] Problem with .htaccess files.

Hi, I got a problem to use .htaccess files. I have this structure:
www.myserver.net/test/ . there I got a .htaccess file with this in: 
 
AuthType Basic
AuthName "test thingy"
AuthUserFile /usr/local/apache2/passwd/passwords
Require yabba
 
And I have added "yabba" with htpasswd, and it seems to work. But when I
type the address www.myserver.net/test/ .. I'm not having to put in the
user and passwd, the page display anyway. What have I done wrong?
 
Kind regards
Niklas Janzon
 

SV: SV: SV: [users@httpd] Problem with .htaccess files.

Posted by Niklas Janzon <ya...@home.se>.
Ahh .. worked very fine now, thanks alot. :>

Kind regards
Niklas Janzon

-----Ursprungligt meddelande-----
Från: Joshua Slive [mailto:joshua@slive.ca] 
Skickat: den 17 juni 2003 05:11
Till: users@httpd.apache.org
Ämne: Re: SV: SV: [users@httpd] Problem with .htaccess files.


On Tue, 17 Jun 2003, Niklas Janzon wrote:

> The error_log say:
>
> [Tue Jun 17 04:30:28 2003] [error] [client a.b.c.ip] access to /test
> failed, reason: unknown require directive:"yabba"

It sounds like you have
require yabba
when what you want is
require user yabba

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





---------------------------------------------------------------------
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: SV: SV: [users@httpd] Problem with .htaccess files.

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 17 Jun 2003, Niklas Janzon wrote:

> The error_log say:
>
> [Tue Jun 17 04:30:28 2003] [error] [client a.b.c.ip] access to /test
> failed, reason: unknown require directive:"yabba"

It sounds like you have
require yabba
when what you want is
require user yabba

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


SV: SV: [users@httpd] Problem with .htaccess files.

Posted by Niklas Janzon <ya...@home.se>.
The error_log say:

[Tue Jun 17 04:30:28 2003] [error] [client a.b.c.ip] access to /test
failed, reason: unknown require directive:"yabba"
[Tue Jun 17 04:30:28 2003] [error] [client a.b.c.ip] access to /test
failed, reason: user yabba not allowed access

Dunno what it meant tho .. how to solve?

Kind regards
Niklas Janzon

-----Ursprungligt meddelande-----
Från: Joshua Slive [mailto:joshua@slive.ca] 
Skickat: den 17 juni 2003 04:50
Till: users@httpd.apache.org
Ämne: Re: SV: [users@httpd] Problem with .htaccess files.


On Tue, 17 Jun 2003, Niklas Janzon wrote:

> Thanks.  Now it shows the "put in the username and password" dialog.
But
> it isn't take my password, even if I maked it with htpasswd. :/
> Worked if I put a .htaccess file in my web-root dir, but not in the
> /test dir. :/
> Any clue on this too? :>

Check the error log.

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





---------------------------------------------------------------------
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: SV: [users@httpd] Problem with .htaccess files.

Posted by Joshua Slive <jo...@slive.ca>.
On Tue, 17 Jun 2003, Niklas Janzon wrote:

> Thanks.  Now it shows the "put in the username and password" dialog. But
> it isn't take my password, even if I maked it with htpasswd. :/
> Worked if I put a .htaccess file in my web-root dir, but not in the
> /test dir. :/
> Any clue on this too? :>

Check the error log.

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


SV: [users@httpd] Problem with .htaccess files.

Posted by Niklas Janzon <ya...@home.se>.
Thanks.  Now it shows the "put in the username and password" dialog. But
it isn't take my password, even if I maked it with htpasswd. :/
Worked if I put a .htaccess file in my web-root dir, but not in the
/test dir. :/
Any clue on this too? :>

Kind regards
Niklas Janzon

-----Ursprungligt meddelande-----
Från: Joshua Slive [mailto:joshua@slive.ca] 
Skickat: den 16 juni 2003 05:13
Till: users@httpd.apache.org
Ämne: Re: [users@httpd] Problem with .htaccess files.


On Mon, 16 Jun 2003, Niklas Janzon wrote:
> And I have added "yabba" with htpasswd, and it seems to work. But when
I
> type the address www.myserver.net/test/ .. I'm not having to put in
the
> user and passwd, the page display anyway. What have I done wrong?

Try:
http://httpd.apache.org/docs/misc/FAQ.html#htaccess-work
and perhaps
http://httpd.apache.org/docs-2.0/howto/htaccess.html

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





---------------------------------------------------------------------
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] Problem with .htaccess files.

Posted by Joshua Slive <jo...@slive.ca>.
On Mon, 16 Jun 2003, Niklas Janzon wrote:
> And I have added "yabba" with htpasswd, and it seems to work. But when I
> type the address www.myserver.net/test/ .. I'm not having to put in the
> user and passwd, the page display anyway. What have I done wrong?

Try:
http://httpd.apache.org/docs/misc/FAQ.html#htaccess-work
and perhaps
http://httpd.apache.org/docs-2.0/howto/htaccess.html

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