Cute Error Pages for your nginx web server (Customized for Project Segfault)
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Odyssey346 386be66983 httpcat
Signed-off-by: Odyssey346 <odyssey346@disroot.org>
10 months ago
_errors add our changes (we will add some more later) 10 months ago
conf add dockerfile 2 years ago
screenshots Add Teapot screenshot 6 years ago
snippets remove sub_filter_types from error_pages.conf 5 years ago
templates httpcat 10 months ago
.dockerignore add dockerfile 2 years ago
400.html httpcat 10 months ago
401.html httpcat 10 months ago
402.html httpcat 10 months ago
403.html httpcat 10 months ago
404.html httpcat 10 months ago
405.html httpcat 10 months ago
406.html httpcat 10 months ago
407.html httpcat 10 months ago
408.html httpcat 10 months ago
409.html httpcat 10 months ago
410.html httpcat 10 months ago
411.html httpcat 10 months ago
412.html httpcat 10 months ago
413.html httpcat 10 months ago
414.html httpcat 10 months ago
415.html httpcat 10 months ago
416.html httpcat 10 months ago
417.html httpcat 10 months ago
418.html Restore 418.html 5 years ago
421.html httpcat 10 months ago
422.html httpcat 10 months ago
423.html httpcat 10 months ago
424.html httpcat 10 months ago
425.html httpcat 10 months ago
426.html httpcat 10 months ago
428.html httpcat 10 months ago
429.html httpcat 10 months ago
431.html httpcat 10 months ago
451.html httpcat 10 months ago
500.html httpcat 10 months ago
501.html httpcat 10 months ago
502.html httpcat 10 months ago
503.html httpcat 10 months ago
504.html httpcat 10 months ago
505.html httpcat 10 months ago
506.html httpcat 10 months ago
507.html httpcat 10 months ago
508.html httpcat 10 months ago
510.html httpcat 10 months ago
511.html httpcat 10 months ago
Dockerfile add dockerfile 2 years ago
LICENSE Add MIT License 5 years ago
Makefile Do not delete 418.html 5 years ago
README.md Update README.md 4 years ago
generate.py Remove 30x error handling (#7) 5 years ago
index.html sv1 => dynamic host, improve regex 5 years ago

README.md

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