Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/manifestinteractive/disaster-girl-error-pages
Disaster Girl Error Pages
https://github.com/manifestinteractive/disaster-girl-error-pages
Last synced: 3 months ago
JSON representation
Disaster Girl Error Pages
- Host: GitHub
- URL: https://github.com/manifestinteractive/disaster-girl-error-pages
- Owner: manifestinteractive
- License: other
- Archived: true
- Created: 2016-08-22T22:28:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-28T07:28:43.000Z (almost 7 years ago)
- Last Synced: 2024-05-02T05:51:22.526Z (6 months ago)
- Language: HTML
- Size: 6.84 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - manifestinteractive/disaster-girl-error-pages - Disaster Girl Error Pages (others)
README
Disaster Girl Error Pages
===Everyone Loves Disaster Girl... so why not use that chaotic smile to let your users know your site is broken ?
![Disaster Girl Error Pages](https://s3.amazonaws.com/disaster-girl/distaster-girl-error-page.gif "Disaster Girl Error Pages")
[![Buy Me Coffee](https://peterschmalfeldt.com/buy-me-coffee.png)](https://www.paypal.me/manifestinteractive)
Demos:
---* [Error 403](https://s3.amazonaws.com/disaster-girl/error_403.html)
* [Error 404](https://s3.amazonaws.com/disaster-girl/error_404.html)
* [Error 500](https://s3.amazonaws.com/disaster-girl/error_500.html)
* [Error 503](https://s3.amazonaws.com/disaster-girl/error_503.html)
* [Error 504](https://s3.amazonaws.com/disaster-girl/error_504.html)Installation ( Nginx ):
---I made these for my nginx servers. Here is how I use them:
```bash
mkdir -p /usr/share/nginx/html/error-pages
cd /usr/share/nginx/html/error-pages
git clone https://github.com/manifestinteractive/disaster-girl-error-pages.git .
```Then we can make the config file:
```
sudo nano /etc/nginx/snippets/error-pages.conf
```and paste in the following
```
error_page 403 /error_403.html;
error_page 404 /error_404.html;
error_page 500 /error_500.html;
error_page 503 /error_503.html;
error_page 504 /error_504.html;location = /error_403.html {
root /usr/share/nginx/html/error-pages;
internal;
}
location = /error_404.html {
root /usr/share/nginx/html/error-pages;
internal;
}
location = /error_500.html {
root /usr/share/nginx/html/error-pages;
internal;
}
location = /error_503.html {
root /usr/share/nginx/html/error-pages;
internal;
}
location = /error_504.html {
root /usr/share/nginx/html/error-pages;
internal;
}
```Then you can include the file in your websites config file:
```
server {
...
include snippets/error-pages.conf;...
}
```Since these are HTML files being delivered to the browser, I went ahead and set them with the correct permissions.
```bash
sudo chmod -R u+rwX,go+rX,go-w /usr/share/nginx/html/error-pages
sudo chown -R $USER:$USER /usr/share/nginx/html/error-pages
```