Welcome! Log In Create A New Profile

Advanced

PRB custom error page

February 22, 2016 10:59AM
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
Subject Author Posted

PRB custom error page

reaman February 22, 2016 10:59AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 307
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready