Hi there,

How can I create nice exception/error messages in *production* environment?

In my web/index.php I have this:

$kernel = new AppKernel('prod', false);

Now when an exception is thrown or a page is not found I get a Chrome error 
that tells me 

Server error
The website encountered an error while retrieving *
http://myapp.local/does-not-exist*. It may be down for maintenance or 
configured incorrectly.
Here are some suggestions:
   
   - Reload this web page later.

HTTP Error 500 (Internal Server Error): An unexpected condition was 
encountered while the server was attempting to fulfill the request.


When I use cURL I get this:

ruud:desktop Ruud$ curl -I -s http://myapp.local/does-not-exist

*HTTP/1.0 500 Internal Server Error*
Date: Mon, 02 May 2011 14:09:05 GMT
Server: Apache
X-Powered-By: PHP/5.3.2
Set-Cookie: _SESS=65eed567ec35dfghfgh expires=Mon, 16-May-2011 14:09:05 GMT; 
path=/
Connection: close
Content-Type: text/html
X-Pad: avoid browser bug


What's up with the 500 Internal Server Error code? I should get an 404 error 
when the URL isn't found right?

Does anyone how to fix this?

Or do I have to use .htaccess 404 / 500 error pages?

Thanks,

- Ruud 

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en

Reply via email to