Skip to content

luisxiaomai/Nginx-Error-Pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nginx-Error-Pages

Nice error pages(4xx and 5xx) for Nginx

Temp1---Chinese

404 error page

500 error page

Temp2---English

404 error page

502 error page

Installation

  1. Navigate into Nginx's default document directory:

    cd /usr/share/nginx/html
    
  2. Clone the repository or download the files directly:

    git clone https://github.com/luisxiaomai/nginx-error-pages.git
    
  3. Include the the custom error pages to the server's website configuration file:

    server {
    ...
    include /usr/share/nginx/html/nginx-errors/nginx-errors-temp1.conf
    }
    

    or

    server {
    ...
    include /usr/share/nginx/html/nginx-errors/nginx-errors-temp2.conf
    }
    
  4. Reload Nginx Server:

    nginx -s reload
    

About

Nice error pages(4xx and 5xx) for Nginx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages