httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] .htaccess Not Working - Almost got it. . . . .
Date Thu, 17 Oct 2002 12:46:44 GMT
There are several misapprehensions in your code - here is a description
of what your httpd.conf is saying, if you follow this, you will then see
what's missing/needs removing:

0. I hope the missing " at the end of many of the lines below is a typo
- obviously delimiters like "" must match up... 

1. Your ScriptAlias directive defines D:/www/htdocs/admin/ as a CGI
directory where executables live. There is no problem making this
password-protected, but you cannot then browse the directory. Your error
"attempt to invoke directory as script: d:/www/htdocs/admin" implies
that you typed http://server/admin/ into the browser - you need to say
http://server/admin/some_program_name to get it to work.

2. Authentication evidently did work, hence the "user alex:
authentication failure for "/admin": password mismatch" error. You just
typed in the wrong password. Does your password file literally contain
"alex:test"? If so, this is wrong. The password element is supposed to
be encrypted, not plaintext. To add passwords to the file, use the
"htpasswd" program which came with apache (in the bin directory).

3. I think your initial problem (Forbidden) may have been due to an
overly restrictve "Allow/Deny" config. You may have had "Deny from all"
in a higher level Dirctory container..

-----Original Message-----
From: Alex "Sniper" Togstad [mailto:sniper@3dretreat.com]
Sent: Donnerstag, 17. Oktober 2002 06:12
To: users@httpd.apache.org
Subject: Re: [users@httpd] .htaccess Not Working - Almost got it. . . .
.


I thought I had it, but spoke too soon:

I'm not getting the pop-up box for me to enter my username/pass, but
everytime I enter the info, it does not take my pass/username. This is
on
apache 1.3.27 btw. . . . .

What I have:

[ httpd.conf]
    ScriptAlias /admin/ "D:/www/htdocs/admin/

 Alias /admin/ "D:/www/htdocs/admin/

 <Directory "D:/www/htdocs/admin/">
    AllowOverride AuthConfig
 </Directory>


[ .htaccess ]
AuthType Basic
AuthName "Protected Directory Wanker"
AuthUserFile D:/www/.htpasswd
AuthGroupFile D:/www/.htgroup
Require group admin

[ .htgroup ]
admin: alex

[ .htpasswd ]
alex: test

[ access.conf ]
AccessConfig /www/htdocs/admin

Error Logs:
[Wed Oct 16 21:07:16 2002] [error] [client 192.168.1.2] attempt to
invoke
directory as script: d:/www/htdocs/admin
[Wed Oct 16 21:07:16 2002] [error] [client 192.168.1.2] attempt to
invoke
directory as script: d:/www/htdocs/admin
[Wed Oct 16 21:07:54 2002] [error] [client 192.168.1.1] user alex:
authentication failure for "/admin": password mismatch
[Wed Oct 16 21:08:00 2002] [error] [client 192.168.1.1] user alex:
authentication failure for "/admin": password mismatch
[Wed Oct 16 21:08:30 2002] [error] [client 192.168.1.2] attempt to
invoke
directory as script: d:/www/htdocs/admin
[Wed Oct 16 21:08:31 2002] [error] [client 192.168.1.2] attempt to
invoke
directory as script: d:/www/htdocs/admin
[Wed Oct 16 21:08:32 2002] [error] [client 192.168.1.2] attempt to
invoke
directory as script: d:/www/htdocs/admin
[Wed Oct 16 21:08:32 2002] [error] [client 192.168.1.2] attempt to
invoke
directory as script: d:/www/htdocs/admin
[Wed Oct 16 21:08:32 2002] [error] [client 192.168.1.2] attempt to
invoke
directory as script: d:/www/htdocs/admin
[Wed Oct 16 21:08:33 2002] [error] [client 192.168.1.2] attempt to
invoke
directory as script: d:/www/htdocs/admin
[Wed Oct 16 21:08:41 2002] [error] [client 192.168.1.2] attempt to
invoke
directory as script: d:/www/htdocs/admin
[Wed Oct 16 21:08:42 2002] [error] [client 192.168.1.2] attempt to
invoke
directory as script: d:/www/htdocs/admin
[Wed Oct 16 21:08:57 2002] [error] [client 192.168.1.1] user alex:
authentication failure for "/admin": password mismatch
[Wed Oct 16 21:08:59 2002] [error] [client 192.168.1.1] user alex:
authentication failure for "/admin": password mismatch
[Wed Oct 16 21:09:00 2002] [error] [client 192.168.1.1] user alex:
authentication failure for "/admin": password mismatch
[Wed Oct 16 21:09:01 2002] [error] [client 192.168.1.1] user alex:
authentication failure for "/admin": password mismatch


---------------------------------------------------------------------
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

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender's company. 

---------------------------------------------------------------------
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


Mime
View raw message