> Hello,
>
> I would like to disallow path info, i.e., respond with 404 if
> PATH_INFO is not empty, i.e., if the URL is something like
> http://mysite.example.com/myscript.pl/path/info.
>
> I tried the Apache directive "AcceptPathInfo Off", but sadly this only
> works with the normal cgi handler; ModPerl seems to ignore it.
>
> Thanks,
> Phillip
Can you provide some additional detail about what you're doing?
As far as I understand it, with "AcceptPathInfo Off" in efffect, the
"/path/info" portion should cause a 404 error. Of course, if this
doesn't work on your system, one possible work-around would be to
check that $r->path_info is empty and do the following if it isn't:
$r->status(Apache2::Const::HTTP_NOT_FOUND);
return Apache2::Const::HTTP_NOT_FOUND;
Randolf Richardson - [email protected]
Inter-Corporate Computer & Network Services, Inc.
Beautiful British Columbia, Canada
http://www.inter-corporate.com/