Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/denysvitali/nginx-error-pages
Cute Error Pages for your nginx web server
https://github.com/denysvitali/nginx-error-pages
418 error errors http https nginx page status teapot
Last synced: 17 days ago
JSON representation
Cute Error Pages for your nginx web server
- Host: GitHub
- URL: https://github.com/denysvitali/nginx-error-pages
- Owner: denysvitali
- License: mit
- Created: 2017-12-25T11:52:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-04-27T16:50:35.000Z (over 3 years ago)
- Last Synced: 2024-10-11T00:52:17.673Z (about 1 month ago)
- Topics: 418, error, errors, http, https, nginx, page, status, teapot
- Language: HTML
- Size: 1.75 MB
- Stars: 398
- Watchers: 16
- Forks: 90
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nginx-error-pages
Make your nginx error pages look great## Installation
```bash
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:
```nginx
$ cat /etc/nginx/conf.d/plex.confserver {
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](screenshots/screenshot-1.png)### 404 Error Page
![404 Error Page](screenshots/screenshot-2.png)### 418 - I'm a Teapot
![418 Error Page](screenshots/screenshot-3.png)