# Custom error page with errors in it

**URL:** <https://www.ruby-forum.com/t/custom-error-page-with-errors-in-it/227516>\
**Category:** NGINX\
**Created:** [March 18, 2013, 5:33pm UTC](https://www.ruby-forum.com/t/custom-error-page-with-errors-in-it/227516 "2013-03-18T17:33:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RedFoxy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/f08c70/32.png) [@RedFoxy](https://www.ruby-forum.com/u/RedFoxy)\
**Post date:** [March 18, 2013, 5:33pm UTC](https://www.ruby-forum.com/t/custom-error-page-with-errors-in-it/227516/1 "2013-03-18T17:33:46Z")

</div>

Hi all!  
I does some rules for various web errors, that rules shows a custom  
error  
page:

error\_page 500 502 503 504 /50x.html;  
location = /50x.html  
{  
root /etc/nginx/\_conf/error-page;  
}

error\_page 404 /404.html;  
location = /404.html  
{  
root /etc/nginx/\_conf/error-page;  
}

That’s ok but there is a way to add some informations about the error in  
the  
pages? In apache there was some “apache-code” to include in the HTML  
page to  
add the web server output error in the html page, there is something  
like it  
in nginx?

thank’s

Posted at Nginx Forum:

> **[custom error page with errors in it](https://forum.nginx.org/read.php?2,237503,237503#msg-237503)**
>
> Hi all! I does some rules for various web errors, that rules shows a custom error page: error\_page 500 502 503 504 /50x.html; location = /50x.html { root /etc/nginx/\_conf/error-page; } error\_page 404 /404.html; location = /404
