I am trying to produce a wrapper/handler that'll be known as around the Apache server whenever someone demands any PHP script within a directory. This way I'm able to authorize customers for the whole directory or write another stuff to become known as once the directory is known as.

This is actually the best configuration I have had the opportunity to develop...

 <Directory "/srv/http/INNOV/PUBLIC_HTML/kb">
  Options -Indexes
  AllowOverride All
  Order allow,deny
  Allow from all
  DirectoryIndex index.php

  AddHandler auth_handler .php
  Action auth_handler /kb/auth_handler.php

[Get married 12 , 01 12:28:06 2010] [error] [client xxx.xxx.xxx.xxx] Request exceeded the limit of 10 internal redirects because of probable configuration error. Use 'LimitInternalRecursion' to improve the limit if required. Use 'LogLevel debug' to obtain a backtrace.

Note: I did not see anything in LogLevel debug.

This really is my handler (to date)... just attempting to do an 'echo' or 'die' for the time being...


Also, please be aware, this really is in the virtualhost directive, but that should not matter. I additionally attempted the next parameter "virtual" choice for the "Action" directive and same factor.

Does anybody know why it might do that?

In a guess - since the auth_handler script auth_handler.php lives within the folder you are attempting to handle, you are getting an infinite loop. That's, it recieves the php request, directs it to auth_hanlder which tries to call auth_handler.php which in turn loads in the handler again, etc. Move auth_hanlder.php from that folder and find out in the event that fixes the problem.