# Really, truly controlling Nginx error pages

**URL:** <https://www.ruby-forum.com/t/really-truly-controlling-nginx-error-pages/214286>\
**Category:** NGINX\
**Created:** [November 27, 2011, 7:07am UTC](https://www.ruby-forum.com/t/really-truly-controlling-nginx-error-pages/214286 "2011-11-27T07:07:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [November 27, 2011, 7:07am UTC](https://www.ruby-forum.com/t/really-truly-controlling-nginx-error-pages/214286/1 "2011-11-27T07:07:44Z")

</div>

I have googled and searched through this forum.

But this syntax in the config file does NOT help:

```
# recursive_error_pages on;
error_page 403 404 500 502 503 504 /error.htm;

```

It works sometimes, but often it just shows me the stock Nginx page.

How do I avoid this once and for all, or is this impossible?

Posted at Nginx Forum:

> **[Really, truly controlling Nginx error pages](https://forum.nginx.org/read.php?2,219133,219133#msg-219133)**
>
> I have googled and searched through this forum. But this syntax in the config file does NOT help: # recursive\_error\_pages on; error\_page 403 404 500 502 503 504 /error.htm; It works sometimes, but often it just shows me t
