You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jerry Bonner <Je...@cpinternet.com> on 2002/11/05 15:46:53 UTC

[users@httpd] Apache Crashing? User Auth Bug?

Lo All, 

Im experiencing a completely weird error with apache 1.3.20 under a Cobalt
server (redhat 6.2 derivative)

The problem is occurring when I try to add user authentication to a
directory, either through httpd.conf or through a .htaccess with the
following :

DirectoryIndex awstats.pl
Authname "Protected Stats Access"
AuthPAM_Enabled off
Authtype Basic
require valid-user
AuthUserFile /path/to/htpasswd

When I try to access the directory through lynx, it reports "Unexpected
network error, connection aborted". The are no errors reported in the httpd
error log or through the syslog when this happens.

Now if I comment out the "require valid-user" directive, I won't get that
error, although authentication will not work either. 

Now the crazy thing is that on the very same box, running under the same
daemon, I have this very same configuration working on another set of
directories and everything works fine.

Does anyone have any clue on whats going on, is there anyway I can get more
information on whats going on from apache?

thanks,

-jerryb

---------------------------------------------------------------------
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] Apache Crashing? User Auth Bug?

Posted by "John K. Sterling" <jo...@sterls.com>.
On Tuesday, November 5, 2002, at 12:26 PM, J. Greenlees wrote:

> Frank,
> I agree with the consistency, but with the htaccess and htpassword 
> apache needs the period. it is the way it's setup.
>
umm, no.

not if the user (like this one is) is specifying the /path/to/htpasswd 
- he can call it whatever he or she wants.  Also, your comments about 
case sensitivity are just not true.

sterling


---------------------------------------------------------------------
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] Apache Crashing? User Auth Bug?

Posted by "J. Greenlees" <ja...@shaw.ca>.
Frank,
I agree with the consistency, but with the htaccess and htpassword 
apache needs the period. it is the way it's setup.

Frank Tanner III wrote:
> I have user authentication in 1.3.20 with no problem. 
> And I don't have any period before my file name.  But
> then my file name doesn't begin with a period.
> 
> I used passwd for my pasword file name and group for
> my group file name.  Just like *nix uses for it's
> names, but in a different location.  Made more sense
> to do it this way from a "readibility" and consistency
> standpoint.
> 
> --- Sander Holthaus - Orange XL <in...@orangexl.com>
> wrote:
> 
>>I cannont be sure here, but is this an actual copy
>>out of your
>>.htaccess-file??? If it is, then I can see some
>>problems:
>>
>>Authname "Protected Stats Access" --> AuthName
>>"Protected Stats Access" (Be
>>case-senstive)
>>AuthPAM_Enabled off  --> ? What is this doing here ?
>>Authtype Basic --> AuthType Basic (Be case-senstive)
>>require valid-user --> AuthUserFile
>>/path/to/.htpasswd (NOTICE the dot
>>before htpasswd)
>>AuthUserFile /path/to/htpasswd --> Require
>>valid-user (Be case-senstive)
>>
>>The biggest problem that I see is that you haven't
>>got the dot before
>>htpasswd. Also, it could be a 1.3.20-issue, but I
>>cannot confirm that. Try
>>upgrading to 1.3.27
>>
>>Also see:
>>http://httpd.apache.org/docs/howto/auth.html#basic
>>
>>Kind regards,
>>Sander Holthaus
>>
>>----- Original Message -----
>>From: "Jerry Bonner" <Je...@cpinternet.com>
>>To: <us...@httpd.apache.org>
>>Sent: Tuesday, November 05, 2002 3:46 PM
>>Subject: [users@httpd] Apache Crashing? User Auth
>>Bug?
>>
>>
>>
>>>Lo All,
>>>
>>>Im experiencing a completely weird error with
>>
>>apache 1.3.20 under a Cobalt
>>
>>>server (redhat 6.2 derivative)
>>>
>>>The problem is occurring when I try to add user
>>
>>authentication to a
>>
>>>directory, either through httpd.conf or through a
>>
>>.htaccess with the
>>
>>>following :
>>>
>>>DirectoryIndex awstats.pl
>>>Authname "Protected Stats Access"
>>>AuthPAM_Enabled off
>>>Authtype Basic
>>>require valid-user
>>>AuthUserFile /path/to/htpasswd
>>>
>>>When I try to access the directory through lynx,
>>
>>it reports "Unexpected
>>
>>>network error, connection aborted". The are no
>>
>>errors reported in the
>>httpd
>>
>>>error log or through the syslog when this happens.
>>>
>>>Now if I comment out the "require valid-user"
>>
>>directive, I won't get that
>>
>>>error, although authentication will not work
>>
>>either.
>>
>>>Now the crazy thing is that on the very same box,
>>
>>running under the same
>>
>>>daemon, I have this very same configuration
>>
>>working on another set of
>>
>>>directories and everything works fine.
>>>
>>>Does anyone have any clue on whats going on, is
>>
>>there anyway I can get
>>more
>>
>>>information on whats going on from apache?
>>>
>>>thanks,
>>>
>>>-jerryb
>>>
>>>
>>
> ---------------------------------------------------------------------
> 
>>>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
>>
> 
> 
> 
> ---------------------------------------------------------------------
> 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] Apache Crashing? User Auth Bug?

Posted by Frank Tanner III <pc...@mybellybutton.com>.
I have user authentication in 1.3.20 with no problem. 
And I don't have any period before my file name.  But
then my file name doesn't begin with a period.

I used passwd for my pasword file name and group for
my group file name.  Just like *nix uses for it's
names, but in a different location.  Made more sense
to do it this way from a "readibility" and consistency
standpoint.

--- Sander Holthaus - Orange XL <in...@orangexl.com>
wrote:
> I cannont be sure here, but is this an actual copy
> out of your
> .htaccess-file??? If it is, then I can see some
> problems:
> 
> Authname "Protected Stats Access" --> AuthName
> "Protected Stats Access" (Be
> case-senstive)
> AuthPAM_Enabled off  --> ? What is this doing here ?
> Authtype Basic --> AuthType Basic (Be case-senstive)
> require valid-user --> AuthUserFile
> /path/to/.htpasswd (NOTICE the dot
> before htpasswd)
> AuthUserFile /path/to/htpasswd --> Require
> valid-user (Be case-senstive)
> 
> The biggest problem that I see is that you haven't
> got the dot before
> htpasswd. Also, it could be a 1.3.20-issue, but I
> cannot confirm that. Try
> upgrading to 1.3.27
> 
> Also see:
> http://httpd.apache.org/docs/howto/auth.html#basic
> 
> Kind regards,
> Sander Holthaus
> 
> ----- Original Message -----
> From: "Jerry Bonner" <Je...@cpinternet.com>
> To: <us...@httpd.apache.org>
> Sent: Tuesday, November 05, 2002 3:46 PM
> Subject: [users@httpd] Apache Crashing? User Auth
> Bug?
> 
> 
> > Lo All,
> >
> > Im experiencing a completely weird error with
> apache 1.3.20 under a Cobalt
> > server (redhat 6.2 derivative)
> >
> > The problem is occurring when I try to add user
> authentication to a
> > directory, either through httpd.conf or through a
> .htaccess with the
> > following :
> >
> > DirectoryIndex awstats.pl
> > Authname "Protected Stats Access"
> > AuthPAM_Enabled off
> > Authtype Basic
> > require valid-user
> > AuthUserFile /path/to/htpasswd
> >
> > When I try to access the directory through lynx,
> it reports "Unexpected
> > network error, connection aborted". The are no
> errors reported in the
> httpd
> > error log or through the syslog when this happens.
> >
> > Now if I comment out the "require valid-user"
> directive, I won't get that
> > error, although authentication will not work
> either.
> >
> > Now the crazy thing is that on the very same box,
> running under the same
> > daemon, I have this very same configuration
> working on another set of
> > directories and everything works fine.
> >
> > Does anyone have any clue on whats going on, is
> there anyway I can get
> more
> > information on whats going on from apache?
> >
> > thanks,
> >
> > -jerryb
> >
> >
>
---------------------------------------------------------------------
> > 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
> 


---------------------------------------------------------------------
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] Apache Crashing? User Auth Bug?

Posted by Sander Holthaus - Orange XL <in...@orangexl.com>.
I cannont be sure here, but is this an actual copy out of your
.htaccess-file??? If it is, then I can see some problems:

Authname "Protected Stats Access" --> AuthName "Protected Stats Access" (Be
case-senstive)
AuthPAM_Enabled off  --> ? What is this doing here ?
Authtype Basic --> AuthType Basic (Be case-senstive)
require valid-user --> AuthUserFile /path/to/.htpasswd (NOTICE the dot
before htpasswd)
AuthUserFile /path/to/htpasswd --> Require valid-user (Be case-senstive)

The biggest problem that I see is that you haven't got the dot before
htpasswd. Also, it could be a 1.3.20-issue, but I cannot confirm that. Try
upgrading to 1.3.27

Also see: http://httpd.apache.org/docs/howto/auth.html#basic

Kind regards,
Sander Holthaus

----- Original Message -----
From: "Jerry Bonner" <Je...@cpinternet.com>
To: <us...@httpd.apache.org>
Sent: Tuesday, November 05, 2002 3:46 PM
Subject: [users@httpd] Apache Crashing? User Auth Bug?


> Lo All,
>
> Im experiencing a completely weird error with apache 1.3.20 under a Cobalt
> server (redhat 6.2 derivative)
>
> The problem is occurring when I try to add user authentication to a
> directory, either through httpd.conf or through a .htaccess with the
> following :
>
> DirectoryIndex awstats.pl
> Authname "Protected Stats Access"
> AuthPAM_Enabled off
> Authtype Basic
> require valid-user
> AuthUserFile /path/to/htpasswd
>
> When I try to access the directory through lynx, it reports "Unexpected
> network error, connection aborted". The are no errors reported in the
httpd
> error log or through the syslog when this happens.
>
> Now if I comment out the "require valid-user" directive, I won't get that
> error, although authentication will not work either.
>
> Now the crazy thing is that on the very same box, running under the same
> daemon, I have this very same configuration working on another set of
> directories and everything works fine.
>
> Does anyone have any clue on whats going on, is there anyway I can get
more
> information on whats going on from apache?
>
> thanks,
>
> -jerryb
>
> ---------------------------------------------------------------------
> 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