John Doe
John Doe

Reputation: 1043

How to change 502 error page running NGINX

I would like to change my 502 error page to a custom design but I cant find in my server root which Linux distribution is installed, therefore where do I find the original 502 error page.

If this information helps PHP engine in use is NGINX and also Plesk is used as hosting management environment.

Each tutorial points to a different location within server root.

Upvotes: 1

Views: 2590

Answers (1)

minamijoyo
minamijoyo

Reputation: 3445

Although it may be different depending on Linux distribution, in Debian 9 the default error page is in /usr/share/nginx/html/50x.html.

You can also change with the error_page directive.

For more details, See:

http://nginx.org/en/docs/http/ngx_http_core_module.html#error_page

Upvotes: 1

Related Questions