Perl Question?
Edward Glowacki
glowack2@msu.edu
Tue, 16 Oct 2001 14:34:51 -0400
Quoted from Jeffrey Utter on Tue, Oct 16, 2001 at 02:21:52PM -0400:
>
> I have a perl script running on my server that takes in part of a url as
> it's argument then loads the appropriate page.
>
> Here is an example: say I want to load /user/Jeff/page/
>
> well the call to the script looks like script.pl?/user/Jeff/page/
> This is kind of like a big wrapper to go around any other html code I
> happen to create so I don't have to type it over and over again.
>
> anyway the question is: Is there a way I can have a perl script tell the
> webserver that it had a 404 error? so the server 404 page is generated as
> a response.
>
> Apache 1.3.9 on FreeBSD 4.3
I'm not sure the exactly, but your question prompted me to look up
the answer to a question I've had for a long time.
Question: How do you customize the 404 page? =)
Answer: Add something like this to your apache.conf (or httpd.conf
or whatever it is these days),
ErrorDocument 404 /usr/local/www/data/error404.html
More details at
http://httpd.apache.org/docs/mod/core.html#errordocument
--
Edward Glowacki glowack2@msu.edu
GLLUG Peon http://www.gllug.org
Imagination is the one weapon in the war against reality.
-- Jules de Gaultier