Skip to content

Cute Error Pages for your Apache web server (based on denysvitali's ones for nginx)

License

Notifications You must be signed in to change notification settings

Joe-Downs/apache-error-pages

 
 

Repository files navigation

nginx-error-pages

Make your nginx error pages look great

Installation

mkdir -p /srv/http/default
git clone https://github.com/denysvitali/nginx-error-pages /srv/http/default
mkdir /etc/nginx/snippets/
ln -s /srv/http/default/snippets/error_pages.conf /etc/nginx/snippets/error_pages.conf
ln -s /srv/http/default/snippets/error_pages_content.conf /etc/nginx/snippets/error_pages_content.conf

Then add to each of your vhosts the following:

include snippets/error_pages.conf;

Example:

$ cat /etc/nginx/conf.d/plex.conf 

server {
        listen       80;
        listen       [::]:80;
        listen       443 ssl http2;
        listen       [::]:443 ssl http2;
        server_name  plex.sv1 plex.sv1.lnet;
        include snippets/ssl.conf;
        include snippets/error_pages.conf; # <== This
        root         /usr/share/nginx/html;

        location / {
                include snippets/reverse-proxy.conf;
                proxy_pass https://127.0.0.1:32400;
        }
}

Screenshots

502 Error Page

502 error page

404 Error Page

404 Error Page

418 - I'm a Teapot

418 Error Page

About

Cute Error Pages for your Apache web server (based on denysvitali's ones for nginx)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 64.6%
  • Python 32.6%
  • Makefile 2.8%