I'm come to understand my 404 handling case better. Here's what I know:

A. If I just set "status => 404" with CGI.pm / Apache::Registry and
return nothing, it works the first time, and then after that I
get a lot of these errors:

"[Tue Apr 22 13:47:07 2008] [error] Can't locate SAP/QuickSearch.pm
in @INC" And indeed, the path that should be set via PerlSetEnv is
missing.

B. If I sent "status => 404" *and* send content, the result is that
two pages are displayed: One is the ErrorDocument for 404, and the
other is the content I sent.

C. If I don't set the status code but just send "file not found"
content, that looks right to users, but the "200" code is returned,
which is inaccurate for any automated tools using the site.

###

At this point, I'm ready go with "C" as being "good enough", however I'm
interested to know why the environment variable would be missing when
the 404 page is called, especially when it works on the first load.

Thanks!

Mark

--
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
mark@summersault.com Summersault, LLC
765-939-9301 ext 202 database driven websites
. . . . . http://www.summersault.com/ . . . . . . . .


--
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
mark@summersault.com Summersault, LLC
765-939-9301 ext 202 database driven websites
. . . . . http://www.summersault.com/ . . . . . . . .