error_page on 0.5.35

Roxis roxis at list.ru
Thu Feb 21 12:46:56 MSK 2008


On Thursday 21 February 2008, Jamie Quint wrote:
> I cant do this easily since I can't use a location directive because
> this is at the http level rather than the server level.

Create a file with this configuration:

location = /404.html {
    root /var/www/apps/myapp/templates;
}

location = /500.html {
    root /var/www/apps/myapp/templates;
}

and include it in every server directory





More information about the nginx mailing list