Welcome! Log In Create A New Profile

Advanced

error_page with try_files

Marcos Neves
May 27, 2010 11:52PM
I want to check if the user has a custom error page, if not shows a
default inside nginx basedir.

error_page 404 403 502 503 504 = @error;

location @error {
try_files /404.htm /404.html /404.php (how to point to a file
outside document root?);
}


Marcos Neves
+55 44 9918-8488

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

error_page with try_files

Marcos Neves May 27, 2010 11:52PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 189
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