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.
Signed-off-by: Odyssey346 <odyssey346@disroot.org> |
10 months ago | |
---|---|---|
_errors | 10 months ago | |
conf | 2 years ago | |
screenshots | 6 years ago | |
snippets | 5 years ago | |
templates | 10 months ago | |
.dockerignore | 2 years ago | |
400.html | 10 months ago | |
401.html | 10 months ago | |
402.html | 10 months ago | |
403.html | 10 months ago | |
404.html | 10 months ago | |
405.html | 10 months ago | |
406.html | 10 months ago | |
407.html | 10 months ago | |
408.html | 10 months ago | |
409.html | 10 months ago | |
410.html | 10 months ago | |
411.html | 10 months ago | |
412.html | 10 months ago | |
413.html | 10 months ago | |
414.html | 10 months ago | |
415.html | 10 months ago | |
416.html | 10 months ago | |
417.html | 10 months ago | |
418.html | 5 years ago | |
421.html | 10 months ago | |
422.html | 10 months ago | |
423.html | 10 months ago | |
424.html | 10 months ago | |
425.html | 10 months ago | |
426.html | 10 months ago | |
428.html | 10 months ago | |
429.html | 10 months ago | |
431.html | 10 months ago | |
451.html | 10 months ago | |
500.html | 10 months ago | |
501.html | 10 months ago | |
502.html | 10 months ago | |
503.html | 10 months ago | |
504.html | 10 months ago | |
505.html | 10 months ago | |
506.html | 10 months ago | |
507.html | 10 months ago | |
508.html | 10 months ago | |
510.html | 10 months ago | |
511.html | 10 months ago | |
Dockerfile | 2 years ago | |
LICENSE | 5 years ago | |
Makefile | 5 years ago | |
README.md | 4 years ago | |
generate.py | 5 years ago | |
index.html | 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;
}
}