Nginx Global Error Page
Posted
by
sidprak
on Server Fault
See other posts from Server Fault
or by sidprak
Published on 2012-04-10T19:33:18Z
Indexed on
2012/04/10
23:31 UTC
Read the original article
Hit count: 268
I see this question was also asked here: Configure Nginx global error page but there wasn't a suitable answer.
I am currently allowing only certain IPs to some of my sites and would like Nginx to drop connections from the rest of the IPs instead of returning a 403. Ideally, I would like to do this without configuring each site separately.
I have this in the http section:
error_page 403 =444;
But, now, it tries to serve up the page =444 instead of returning a 444.
© Server Fault or respective owner