Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to turn off default HTTP status code errors in Zend Server?
    primarykey
    data
    text
    <p>Every time I return some status code in my PHP code, Zend Server gives me following error appended on the bottom of my website (with the message of HTTP code I returned). So for example, if I return 401, it gives me another 401 error appended to my 401 page:</p> <p><a href="http://img3.imageshack.us/img3/1737/zend401.jpg" rel="nofollow noreferrer">alt text http://img3.imageshack.us/img3/1737/zend401.jpg</a></p> <p>Is there any way to turn it off? I use <a href="http://www.zend.com/en/products/server/downloads?hpb=Server5_GA" rel="nofollow noreferrer">Zend Server Community Edition 5.0 with PHP 5.2</a>.</p> <p><strong>EDIT:</strong></p> <p>It seems to be default Apache error handling. Is there a way to disable it? Preferably without having my own error pages.</p> <p><strong>ADDITIONAL EDIT:</strong></p> <p>I tried to edit my .htaccess with ErrorDocument directives. It still gives me my error page (blank page) + Apache error (like on screenshot above).</p> <p>This isn't happening with ZendServer 4 I have on server. I use ZendServer 5 on localhost tho. Is it possible to be some kind of bug or misconfiguration from Zend side?</p> <p><strong>BEHAVIOUR:</strong></p> <p>(In all test cases I return 401)</p> <p>When I use default ZendServer configuration + ErrorDocument directives in .htaccess, I get my own error page + Apache error page appended bellow it.</p> <p>When I use default ZendServer configuration + disable my own ErrorDocument directives, I get just Apache error page.</p> <p>When I change Apache error pages to blank files + use my own ErrorDocument directives, I get the desired behavior, however errors 404 still append default Apache errors bellow my own.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload