error_page with try_files

Marcos Neves marcos.neves at gmail.com
Fri May 28 07:47:53 MSD 2010


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



More information about the nginx mailing list