Welcome! Log In Create A New Profile

Advanced

Re: Force "internal" directive to display a custom 404?

Maxim Dounin
August 07, 2012 09:42AM
Hello!

On Mon, Aug 06, 2012 at 05:31:50PM -0400, TECK wrote:

> Example:
>
> error_page 404 /404.html;
>
> location = /404.html {
> internal;
> }
>
> location /alpha {
> internal;
> }
>
> The proper behavior would be to display the custom 404.html in every
> case, which does not.
> I'm not sure this could be marked as new feature, or is feasible with
> some configuration I don't know about it?

Do you actually have 404.html file under document root? The above
config properly returns custom 404 for "/404.html", "/alpha", and
"/alpha/foo" requests here, just tested.

Maxim Dounin

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

Force "internal" directive to display a custom 404?

TECK August 06, 2012 05:31PM

Re: Force "internal" directive to display a custom 404?

Maxim Dounin August 07, 2012 09:42AM

Re: Force "internal" directive to display a custom 404?

TECK August 07, 2012 09:51AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 49
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready