# PRB custom error page

**URL:** <https://www.ruby-forum.com/t/prb-custom-error-page/244115>\
**Category:** NGINX\
**Created:** [February 22, 2016, 4:59pm UTC](https://www.ruby-forum.com/t/prb-custom-error-page/244115 "2016-02-22T16:59:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [February 22, 2016, 4:59pm UTC](https://www.ruby-forum.com/t/prb-custom-error-page/244115/1 "2016-02-22T16:59:39Z")

</div>

Hi,  
I want to custom personnal page and I make the page error.html in  
(/usr/share/nginx/html/error.html)  
and in the file rutorrent.conf in  
(/etc/nginx/sites-enabled/rutorrent.conf)  
I ajout this lines

First test:

server {  
## redirection url ##  
listen 80;  
…  
error\_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414  
415  
416 417 500 501 502 503 504 505 506 507 /error.html;

```
location = /error.html {
     root /usr/share/nginx/html;
   # internal;
}

```

and second test

server {  
## redirection url ##  
listen 80;  
…  
error\_page 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414  
415  
416 417 500 501 502 503 504 505 506 507 /error.html;

```
location = /error.html {
     try_files /error.html @error;
     internal;
}

## Fallback Directory
  location @error {
    root /usr/share/nginx/html;
}

```

No fonction, no possible to see my personal page error.html when have  
the  
error, why ???  
I no know ☹

Thx for you help

Posted at Nginx Forum:

> **[PRB custom error page](https://forum.nginx.org/read.php?2,264712,264712#msg-264712)**
>
> Hi, I want to custom personnal page and I make the page error.html in (/usr/share/nginx/html/error.html) and in the file rutorrent.conf in (/etc/nginx/sites-enabled/rutorrent.conf) I ajout this lines First test: server { ## redirection url ##
