Custom 502 error page  for nginx

Posted on 2013-09-18
Medium Priority
Last Modified: 2013-10-09

I want to chage the 502 error page  for nginx

how can i do it ?

thank you
Question by:Babak01
1 Comment
LVL 53

Accepted Solution

COBOLdinosaur earned 2000 total points
ID: 39513050
error_page 502 /502.html;
 location = /502.html {

      root  /home/domain/public_html;


Should do it asuming you have created a page named 502.html


Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Whether you have a site with just static html pages or a dynamic database-driven one, this step-by-step migration guide will help you get started with your new DV server. This guide is by no means comprehensive but it should cover the basics to get …
Can you run Linux on a Windows system?  Yep.  Here's how.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

597 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question