Re: WWW-Authenticate problem in Apache

From: Date: Tue, 02 Apr 2002 10:28:52 +0000
Subject: Re: WWW-Authenticate problem in Apache
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-91100@lists.php.net to get a copy of this message
Hi, I've never tried requiring authentication via a header (only through httpd.conf or .htaccess), but here's my best guess: You're telling it what type of authentication to do, and you're telling it what realm to authenticate to, but: - You're not telling it what to require, and you're not telling it where to find that info. For example, with the httpd.conf format, you would have something like: <Directory "/var/www/htdocs/foo">
	    AuthType Basic
	    AuthName "My Realm"
	    AuthUserFile /var/www/auth/htpasswd
	    require valid-user
</Directory> Any reason you're not using .htaccess? /bsh/ dssopt wrote:
Hi everybody, I try to install Apache 3.1.2 + PHP-4.1.2 on RedHat 7.2. All seems to be fine but when I write a PHP to test the authenticate. <?php
    header("WWW-Authenticate: Basic realm=\"My Realm\"");
?> Whatever I input to the login box, the failed, retry message comes out and it becomes a dead loop - login - retry - login .. Can anyone help me ?? Ken
-- /---------------------------------------------=[ BILLY S HALSEY ]=--\ | Member of Technical Staff, Sun Microsystems, Inc. ESP Solaris SW | | "All opinions and technical advice offered in this message are my | | own and not necessarily endorsed by my employer." | \--=[ bsh-php@sun.com ]=--------------------------------------------/

« previous php.general (#91100) next »