Re: [PHP4BETA] PHP4 confuses Apache/Errorpage settings
| From: | Sascha Schumann | Date: | Mon, 04 Oct 1999 14:04:22 +0000 |
| Subject: | Re: [PHP4BETA] PHP4 confuses Apache/Errorpage settings | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5126@lists.php.net to get a copy of this message | ||
On Mon, Oct 04, 1999 at 03:38:45PM +0200, Andreas Jung wrote:
> Reply-To:
> I'm running Apache 1.3.9 and PHP4Beta2 under Solaris.
>
> When I customize Apache with
> Errorpage 404 /somepage.php3
>
> all requests to pages that don't exist are logged in the
> access.log with error code 200 instead of 404. As similar
> behaviour occurs with error code 401. In this case an
> authorization required header is send to the client and the
> error page configured for error 401.
>
> Is there a way to get around this problem ?
Not currently. Rasmus wanted to attack this problem. There is
already code which should handle this (using the HTTP status
line passed to sapi_add_header()), but it apparently fails to
work under some circumstances (i.e. when sapi_module.send_headers()
does not return SAPI_HEADER_DO_SEND).
--
Regards,
Sascha Schumann
Consultant