You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Benjamin Elixmann <el...@whu.edu> on 2002/07/29 00:59:52 UTC
win98 apache 2.0.39 + php + WWW authenticate
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