Welcome! Log In Create A New Profile

Advanced

Re: error_page at http context

Francis Daly
June 16, 2015 04:48PM
On Fri, Jun 12, 2015 at 07:13:08PM -0400, iamnginxer wrote:

Hi there,

> I can't get error_page override default error pages when using it in HTTP
> context (rather than server {} / location {}).

What did you try?

> Can someone share a real-world working example?

http://nginx.org/r/error_page

==
http {
error_page 404 /404.html;
server {
listen 8080;
}
}
==

$ echo my-404 > html/404.html

$ curl http://127.0.0.1:8080/not-there
my-404

f
--
Francis Daly francis@daoine.org

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

error_page at http context

iamnginxer June 12, 2015 07:13PM

Re: error_page at http context

Francis Daly June 16, 2015 04:48PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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