Zend Server 4 > 5 update - ErrorDocument issue

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Zend Server 4 > 5 update - ErrorDocument issue

dbenjamin
Hello,

I have upgraded Zend Server 4 to Zend Server 5 on my development machine but now apache seems to automatically output a document template on "400 bad request" errors.

I'm not good enough with server configuration and i already spent hours to find out what's wrong, but no way :)

For example, when i return json to javascript with a 400 http header, in firebug i have : http://pastie.org/974435

The server is running on a Windows 7 x64 (no problem on production server with ubuntu).
Every "ErrorDocument" directives are commented into httpd.conf.

My virtualhost : http://pastie.org/974441

I really don't know what to do, does someone knows how to resolve that please ? :)


Thanks,

br,
Benjamin.
Reply | Threaded
Open this post in threaded view
|

Re: Zend Server 4 > 5 update - ErrorDocument issue

dbenjamin
I think i'm going crazy, all the "ErrorDocument" directives are commented, i also renamed apache2 "error" folder which is supposed to contain errors HTML templates but no way, apache always add a html document after mine, it's really frustrating ! :)

br,
Benjamin.
Reply | Threaded
Open this post in threaded view
|

Re: Zend Server 4 > 5 update - ErrorDocument issue

damir.mitrovic
This post has NOT been accepted by the mailing list yet.
This post was updated on .
In reply to this post by dbenjamin
Hi,

I am having similar issue while developing REST API. If you want that Apache displays no Error documents you could add folowing entry to your directive:

ErrorDocument ' '

http://httpd.apache.org/docs/2.0/mod/core.html#errordocument

Documentation says:
In the event of a problem or error, Apache can be configured to do one of four things,

   1. output a simple hardcoded error message
   2. output a customized message
   3. redirect to a local URL-path to handle the problem/error
   4. redirect to an external URL to handle the problem/error

This is case 2 and customized message is empty string.

Regards,
Damir