You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by "Michael J.Connolly" <mc...@ckcorp.com> on 2001/01/23 20:10:45 UTC
general/7116: 2 user/password screens
>Number: 7116
>Category: general
>Synopsis: 2 user/password screens
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Tue Jan 23 11:20:07 PST 2001
>Closed-Date:
>Last-Modified:
>Originator: mconnoll@ckcorp.com
>Release: 1.3.9
>Organization:
apache
>Environment:
SunOS cksun2 5.8 Generic_108528-04 sun4u sparc SUNW,Ultra-2
Apache 1.3.9 bundled with Solaris 8
>Description:
Really sorry to bother you all but I've loked and been trying to fix this for 2 days without success.
First this is a completely generic install with all of the default file locations from the Solaris install intact.
I set up a directory to require user/password access. I've added the Directory directives to httpd.conf and created a user using htpasswd
and created the .htaccess file in the "protected directory". Whenever I access this dir from a link on my index page
I get the user/pw screen, enter the user/pw and then get a second user/pw screen.
I again enter the user/pw and am then given access to the protect dir.
Here are the bits and pieces:
from httpd.conf:
#
# This should be changed to whatever you set DocumentRoot to.
#
<Directory "/var/apache/htdocs">
#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
Options Indexes FollowSymLinks
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
<Directory /var/apache/htdocs/cad-history-pdf>
AllowOverride AuthCOnfig
Order allow,deny
Allow from all
</Directory>
.htaccess:
AuthName "C&K Product Drawings History"
AuthUserFile /etc/apache/.htpasswd
AuthGroupFile /dev/null
AuthType Basic
require user jabba
>How-To-Repeat:
Try the same Apache version on Solaris 8?
>Fix:
not a clue - I've tried every combination possible.
>Release-Note:
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]