My goal is to make an apache 404 custom error page.
This page is a perl script, that in fact provides content instead of a 404 error page.
So waht I do is that I use the ErrorDocument directive, and associate 404 with a perl script, that provide contents according to the url that was typed.
Now the problem is that apache is currently displaying the custom page, but is still returning a 404 code (I can see it in logs.)
Is there a way to tell apache to use a custom 404 page, and not use 404 code?