Page 1 of 1

simple header question

Posted: Tue Oct 25, 2005 7:15 am
by shiznatix
i want when a person tries to view a directory they get a 401 Unauthorized so i do this

Code: Select all

<?
header("HTTP/1.0 401 Unauthorized");
?>
and i save it as index.php of course. sadly it just displays a blank page and not the awesome 401 page. this is probably becuase of some server config but i don't know how to set that up.

Posted: Tue Oct 25, 2005 9:11 am
by Maugrim_The_Reaper
Thinks you can set up in httpd.conf (if using Apache) - requires reading of the conf file, and maybe the Apache manual.