Welcome! Log In Create A New Profile

Advanced

Disable error page for one location?

Nicholas Sherlock
March 04, 2012 04:16AM
Hi everyone,

I'm using Nginx to proxy to an Apache backend. The backend generates a wide
variety of ugly 404- and 500-code error messages that I don't really want to
show to the end-user, so in my server block I've got:

proxy_intercept_errors on;
error_page 500 502 503 504 /error/500.html;
error_page 400 /error/404.html;

The backend scripts in one of my locations generate useful 404 (but not 500)
messages that I want to pass through to the client. How can I pass through
just 404 errors in one particular location from my backend to the client?

Thanks,
Nicholas Sherlock

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

Disable error page for one location?

Nicholas Sherlock March 04, 2012 04:16AM

Re: Disable error page for one location?

Francis Daly March 04, 2012 04:36AM

Re: Disable error page for one location?

Nicholas Sherlock March 04, 2012 06:02AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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