I'm trying to set up some basic authorization and it's not working out.
code:
<?php
header('WWW-Authenticate: Basic realm="Private"');
header('HTTP/1.0 401 Unauthorized');
exit;
?>
errors from server log:
[Fri Jun 07 22:02:17 2002] [error] Access to config file c:/program files/apache group/apache/nul denied: not a valid filename
[Fri Jun 07 22:02:17 2002] [error] Access to config file c:/program files/apache group/apache/nul denied: not a valid filename
[Fri Jun 07 22:02:17 2002] [error] Access to config file c:/program files/apache group/apache/nul denied: not a valid filename
[Fri Jun 07 22:02:17 2002] [error] Access to config file c:/program files/apache group/apache/nul denied: not a valid filename
[Fri Jun 07 22:02:17 2002] [error] Access to config file c:/program files/apache group/apache/nul denied: not a valid filename
[Fri Jun 07 22:02:17 2002] [error] [client 192.168.1.1] malformed header from script. Bad header=HTTP/1.0 401 Unauthorized: c:/program files/apache group/apache/php/php.exe
Running Apache on Win2k
Thoughts?
and in case it matters, basic auth using .htaccess works.