How to return 404 from Apache2 CGI program
Posted
by fastmonkeywheels
on Server Fault
See other posts from Server Fault
or by fastmonkeywheels
Published on 2010-03-11T23:53:18Z
Indexed on
2010/03/12
0:37 UTC
Read the original article
Hit count: 609
I'm using mod_rewrite to redirect all incoming requests to a CGI application. I now need to have the application return a 404 if the requested file isn't found. How can I go about this from my program? The first line sent is the content-type while it's the line before that that usually indicates the status (200/404/500, etc).
© Server Fault or respective owner