Compare commits
4 Commits
5fbb237703
..
v1.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 178f04c515 | |||
| 181a119bd8 | |||
| fb2ceb1146 | |||
| e72d0460e4 |
+5
-2
@@ -50,5 +50,8 @@
|
|||||||
# Exclude files from exporting
|
# Exclude files from exporting
|
||||||
#
|
#
|
||||||
|
|
||||||
.gitattributes export-ignore
|
.gitattributes export-ignore
|
||||||
.gitignore export-ignore
|
.gitignore export-ignore
|
||||||
|
.vscode export-ignore
|
||||||
|
screenshots export-ignore
|
||||||
|
|
||||||
|
|||||||
@@ -1,20 +1,21 @@
|
|||||||
LICENSE
|
MIT License
|
||||||
|
|
||||||
You are hereby granted permission to use these files for any and all purposes
|
Copyright (c) 2020 Asif Bacchus
|
||||||
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.
|
|
||||||
|
|
||||||
The author of these pages is NOT the author/creator of the 'monster' artwork.
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
While every effort has been made to ensure the images included on these pages
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
may be freely used, they are the intellectual property of another person. Use of
|
in the Software without restriction, including without limitation the rights
|
||||||
these images must be discontinued upon the request of their creator/owner.
|
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
|
The above copyright notice and this permission notice shall be included in all
|
||||||
REPOSITORY/ARCHIVE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
copies or substantial portions of the Software.
|
||||||
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
|
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
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
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
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
PAGES.
|
SOFTWARE.
|
||||||
|
|||||||
@@ -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.
|
Feel free to use these pages on your site and/or alter them however you see fit. Enjoy.
|
||||||
|
|
||||||
## Contents <!-- omit in toc -->
|
## Contents <!-- omit in toc -->
|
||||||
|
|
||||||
- [Some screenshots](#some-screenshots)
|
- [Some screenshots](#some-screenshots)
|
||||||
- [Getting the files](#getting-the-files)
|
- [Getting the files](#getting-the-files)
|
||||||
- [Using the error pages (NGINX)](#using-the-error-pages-nginx)
|
- [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
|
```bash
|
||||||
cd ~
|
cd ~
|
||||||
|
# clone from my server (most up-to-date)
|
||||||
git clone https://git.asifbacchus.app/asif/fun-errorpages.git
|
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).
|
2. Switch to your webroot (I'm assuming NGINX).
|
||||||
@@ -62,7 +66,7 @@ location ^~ /errorpages {
|
|||||||
|
|
||||||
### Multiple sites
|
### 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).
|
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:
|
2. In your various server files, at the end of your *server* blocks, simply add the following:
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
<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">
|
<link rel="stylesheet" href="/errorpages/styles.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
Reference in New Issue
Block a user