Re: Internal server error on PHP syntax error?
| From: | Reindl Harald | Date: | Mon, 13 Feb 2012 17:10:55 +0000 |
| Subject: | Re: Internal server error on PHP syntax error? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-57832@lists.php.net to get a copy of this message | ||
Am 13.02.2012 18:08, schrieb Jakov Sosic:
> and I get this in logs:
> IPADDR - - [13/Feb/2012:18:03:52 +0100] "GET /~username/test/ HTTP/1.1" 500 20
> "-" "Mozilla/5.0 (X11; Linux x86_64;
> rv:10.0.1) Gecko/20100101 Firefox/10.0.1"
>
> so, 500 headers are returned but internal server error page is not displayed. All I get is a
> blank page.
> So apache directive "ErrorDocument 500 /500.html" is useless in this case.
yes, but the more important is the status code so that search
engines do not index you broken page, apache SHOULD NOT provide
his own error-page because you can also send 500 status code
within your script for whatever reason and want your output
not supressed in such cases
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc