Skip to content

dcramble/nginx-error-service

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nginx error server

404-server image that provides custom error pages

Description:

The route / expects two headers:

  • X-Code indicates the HTTP code to be returned. Default is 404
  • X-Format the format that should be returned. Default is html

The content to be returned must be a file located inside the directory /var/www/html. Following the previous example, is expected a file named 504.json or 502.html inside /var/www/html. If there is no such file it will try to return the content of the most generic code for the error, ie 5xx for any error bigger than 499 for instance.

How to use it:

  • Create a custom docker image using FROM aledbf/nginx-error-server as parent adding the custom content inside /var/www/html
  • Use aledbf/nginx-error-server image with a custom volume pointing to /var/www/html.

About

Simple service returning error pages in different formats (for kubernetes NGINX ingress)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%