InjectedPie / nginx-error-pages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nginx-error-pages

Make your nginx error pages look great

Installation

curl https://raw.githubusercontent.com/CreatorsTF/creatorstf-nginx-error-pages/master/install.sh | sudo bash - 

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

License:MIT License


Languages

Language:HTML 98.9%Language:Python 0.5%Language:Shell 0.3%Language:CSS 0.2%Language:Dockerfile 0.1%Language:Makefile 0.1%