nginx custom error page

server {

error_page 500 /500.html;
location = /500.html {
root /etc/nginx/html/;
internal;
}

error_page 502 /502.html;
location = /502.html {
root /etc/nginx/html/;
internal;
}

error_page 503 /503.html;
location = /503.html {
root /etc/nginx/html/;
internal;
}

error_page 504 /504.html;
location = /504.html {
root /etc/nginx/html/;
internal;
}

}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s