httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin Elixmann" <elixm...@whu.edu>
Subject win98 apache 2.0.39 + php + WWW authenticate
Date Sun, 28 Jul 2002 22:59:52 GMT
Hi,

I installed php 4.2.2 and apache 2.0.39 on my windows 98 machine.

the server and php work. php runs as a module through:
   LoadModule php4_module d:/Programme/php/sapi/php4apache2.dll
   AddType application/x-httpd-php .php
in my httpd.conf.

after installing, scripts which use www-authenticate of the following form:
	Header("WWW-Authenticate: Basic realm=\"myintranet.de\"");
	Header("HTTP/1.0 401 Unauthorized");

do not work any more. in the following example i would directly see the "No
Login" line without any prompt for a password:
if(!$PHP_AUTH_USER)
	{
	Header("WWW-Authenticate: Basic realm=\"in-praxi.org\"");
	Header("HTTP/1.0 401 Unauthorized");
	echo("No Login");	}

There is no entry in the httpd error log

interestingly the code worked with apache 1.3.36

is there some configuration i missed? appreciate any help

thanks
benjamin



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message