# Log response errors to a separate file

**URL:** <https://www.ruby-forum.com/t/log-response-errors-to-a-separate-file/212225>\
**Category:** NGINX\
**Created:** [September 26, 2011, 12:57pm UTC](https://www.ruby-forum.com/t/log-response-errors-to-a-separate-file/212225 "2011-09-26T12:57:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [September 26, 2011, 12:57pm UTC](https://www.ruby-forum.com/t/log-response-errors-to-a-separate-file/212225/1 "2011-09-26T12:57:41Z")

</div>

Hello, I would like to log to the general access log and also to a  
separate  
log 404, 403, 500, 501, 502, 503 responses. Is there a way of doing  
this? Is  
anyone doing this?

Currently nginx is running in front of fastcgi and I would like 404 to  
be  
handled by the fastcgi backend (front controller pattern).

Thanks.
