Compare commits

...

4 Commits

Author SHA1 Message Date
Asif Bacchus 178f04c515 fix wrong error number in page title 2020-06-24 01:31:30 -06:00
Asif Bacchus 181a119bd8 fix typo 2020-05-24 05:10:28 -06:00
Asif Bacchus fb2ceb1146 update readme 2020-05-24 05:09:59 -06:00
Asif Bacchus e72d0460e4 update license and gitattributes 2020-05-24 05:07:12 -06:00
4 changed files with 26 additions and 18 deletions
+3
View File
@@ -52,3 +52,6 @@
.gitattributes export-ignore
.gitignore export-ignore
.vscode export-ignore
screenshots export-ignore
+15 -14
View File
@@ -1,20 +1,21 @@
LICENSE
MIT License
You are hereby granted permission to use these files for any and all purposes
you see fit. You are permitted to alter the contents of this archive in any way
you wish so long as the attributions included in the image files remain intact
and readable.
Copyright (c) 2020 Asif Bacchus
The author of these pages is NOT the author/creator of the 'monster' artwork.
While every effort has been made to ensure the images included on these pages
may be freely used, they are the intellectual property of another person. Use of
these images must be discontinued upon the request of their creator/owner.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
THE HTML PAGES AND ASSOCIATED FILES ("PAGES") PROVIDED IN THIS
REPOSITORY/ARCHIVE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE PAGES OR THE USE OR OTHER DEALINGS IN THE
PAGES.
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
+5 -1
View File
@@ -5,6 +5,7 @@ Here are some fun error pages to use instead of the usual boring ones. I didn't
Feel free to use these pages on your site and/or alter them however you see fit. Enjoy.
## Contents <!-- omit in toc -->
- [Some screenshots](#some-screenshots)
- [Getting the files](#getting-the-files)
- [Using the error pages (NGINX)](#using-the-error-pages-nginx)
@@ -26,7 +27,10 @@ I'll assume you're using a linux server and provide examples of each command on
```bash
cd ~
# clone from my server (most up-to-date)
git clone https://git.asifbacchus.app/asif/fun-errorpages.git
# OR clone from github (usually the latest version)
git clone https://github.com/asifbacchus/fun-errorpages.git
```
2. Switch to your webroot (I'm assuming NGINX).
@@ -62,7 +66,7 @@ location ^~ /errorpages {
### Multiple sites
On many of my webservers, I run mulitple sites/services but would like to use the same fun error pages on each of them. I could append the above to each server configuration file, or I could just use one file and *include* it in each configuration. Let's run though that quickly:
On many of my webservers, I run multiple sites/services but would like to use the same fun error pages on each of them. I could append the above to each server configuration file, or I could just use one file and *include* it in each configuration. Let's run though that quickly:
1. Make a new file and call it something like *"errorpages.conf"*. Save the file somewhere that makes sense, like your *NGINX configuration directory* (/etc/nginx/errorpages.conf).
2. In your various server files, at the end of your *server* blocks, simply add the following:
+1 -1
View File
@@ -4,7 +4,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Error 404 - Bad Request</title>
<title>Error 400 - Bad Request</title>
<link rel="stylesheet" href="/errorpages/styles.css">
</head>
<body>