suphp and header (Status: xxx yyyyy) not seeing default error page
| From: | Errotan ) | Date: | Thu, 15 Mar 2007 12:26:10 +0000 |
| Subject: | suphp and header (Status: xxx yyyyy) not seeing default error page | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-250654@lists.php.net to get a copy of this message | ||
Hello everybody.
Sorry for my bad english.
I'm using apache 2.2.3-3.3 ; php 5.2.0-8-cgi ; suphp 0.6.2-1 on debian "etch".
I'm running php as cgi ( using suphp ).
I can't get header ("Status: 404 Not found"); and other header (xxx) commands
to send default error page like http://example.com/nonexistent would send.
The browser gets 404 ( and other ) error code but I only see a blank page.
Is it possible to use apache's errordocuments so the users can't see the
difference?
My main goal is to hide class php files and directories and of course other
error pages would be useful :) .
Thanks.