500 Internal Server Error on Apache/PHP AddHandler wrapper -
i'm trying create wrapper/handler called on apache server whenever requests php script inside of directory. way can authorize users entire directory or write other stuff called when directory called.
this best configuration i've been able come with...
<directory "/srv/http/innov/public_html/kb"> options -indexes allowoverride order allow,deny allow directoryindex index.php addhandler auth_handler .php action auth_handler /kb/auth_handler.php </directory> [wed dec 01 12:28:06 2010] [error] [client xxx.xxx.xxx.xxx] request exceeded limit of 10 internal redirects due probable configuration error. use 'limitinternalrecursion' increase limit if necessary. use 'loglevel debug' backtrace.
note: didn't see in loglevel debug.
this handler (so far)... trying 'echo' or 'die' now...
<?php $file = $_server['path_translated']; //readfile($file); die($file); ?> also, please note, inside virtualhost directive, shouldn't matter. tried 3rd parameter "virtual" option "action" directive , same thing.
does know why this?
at guess - because auth_handler script auth_handler.php lives inside folder you're trying handle, you're getting infinite loop. is, recieves php request, directs auth_hanlder attempts call auth_handler.php loads handler again, etc. move auth_hanlder.php out of folder , see if fixes issue.
Comments
Post a Comment