PHP/Apache wrapper/handler problem.

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1587

Post 3+ Months Ago

I'm trying to create a wrapper/handler that will be called on the Apache server whenever someone requests any PHP script inside of a directory.

This is the best configuration I've been able to come up with...

httpd.conf wrote:
<Directory "/srv/http/INNOV/PUBLIC_HTML/kb">
Options -Indexes -FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
AddHandler auth_handler .php
Action auth_handler /kb/auth_handler.php
#Action application/x-httpd-php /auth_handler.php

error_log wrote:
[Wed Dec 01 12:28:06 2010] [error] [client] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.

(Note, I didn't see anything in LogLevel debug)

This is my handler (so far)... just trying to do an 'echo'...

PHP Code: [ Select ]
echo $FILE;
  1. <?php
  3. echo $FILE;
  4. //readfile($FILE);
  5. ?>

Does anybody know why it would do this?

Post Information

  • Total Posts in this topic: 1 post
  • Users browsing this forum: No registered users and 35 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.