You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Zsolt Czinkos <cz...@interware.hu> on 2002/01/09 01:42:58 UTC

FixupHandler called twice

Hi

My question again (a bit refined):

When I request an URI without a filename (e.g: http://localhost:8080/),
my perl fixup handler is called three times.
Why? How can I avoid this? Can I?

http://localhost:8080/index.html works fine.

Thanks in advance

czinkos

Re: FixupHandler called twice

Posted by Balazs Rauznitz <ba...@commissioner.com>.
On Wed, Jan 09, 2002 at 01:42:58AM +0100, Zsolt Czinkos wrote:
> Hi
> 
> My question again (a bit refined):
> 
> When I request an URI without a filename (e.g: http://localhost:8080/),
> my perl fixup handler is called three times.
> Why? How can I avoid this? Can I?
> 
> http://localhost:8080/index.html works fine.

Put a 

warn "DEBUG:", $r->current_callback(), " ", $r->the_request(), " ", $r->filename(); in your fixuphandler and see what's geting requested. I bet that first time it'll be you DocumentRoot than DocumentRoot/index.html...

-B