PHP/Apache wrapper/handler problem.

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

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
</Directory>


error_log wrote:
[Wed Dec 01 12:28:06 2010] [error] [client xxx.xxx.xxx.xxx] 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 ]
<?php
$FILE = $_SERVER['PATH_TRANSLATED'];
echo $FILE;
//readfile($FILE);
?>
  1. <?php
  2. $FILE = $_SERVER['PATH_TRANSLATED'];
  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 30 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
 
cron
 

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