You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Apache Error Pages project is a drop-in replacement of beautifully designed, user-friendly Apache 2 error pages. If you're tired of having _boring_ Apache error pages displayed to users then these might just be the solution for you.
3
+
These Apache Error Pages project is a drop-in replacement of beautifully designed, user-friendly Apache 2 error pages. If you're tired of having _boring_ Apache error pages displayed to users then these might just be the solution for you.
* [Running the minify script](#running-the-minify-script)
25
+
*[Contributing](#contributing)
26
+
*[Code of Conduct](#code-of-conduct)
27
+
*[Versioning](#versioning)
28
+
*[Change-Log](#change-log)
29
+
*[Authors](#authors)
30
+
*[TODO](#todo)
31
+
*[License](#license)
32
+
*[Acknowledgements](#acknowledgements)
33
+
34
+
<!-- /code_chunk_output -->
35
+
4
36
## Features
5
37
6
38
* Fully responsive templates, works across desktop, tablet and mobile phones.
7
39
* Animated text, creating the illusion of an error output on a Terminal console.
8
-
* There are 24 templates covering all Apache 2 (as well as other webserver) error statuses. Enjoy!
9
-
* Each template, as well as corresponding CSS file, has been minified for smallest file usage possible.
40
+
* There are 27 templates, 20 exclusively for Apache with an additional 7 for other web-servers. Enjoy!
41
+
* Each template, as well as all CSS files, have been minified to ensure the smallest file usage possible.
10
42
* Font Awesome icons used in error messages.
11
43
12
-
Installation instructions are found below the previews. This shouldn't take you more than 5-10 minutes to implement these crafted, custom-designed Apache error pages.
44
+
[Installation instructions](#installation) are found below the previews. This shouldn't take you more than **5 minutes** to implement these hand-crafted, custom-designed Apache error pages.
13
45
14
46
## Preview
15
47
16
-
### 404 Error Page
48
+
### Error Page Example
17
49
18
50
![404 Error Page][404-template]
19
51
52
+
### Responsive Design
53
+
54
+
#### Desktop
55
+
56
+
![Desktop Version][preview1]
57
+
58
+
#### Tablet
59
+
60
+
![Tablet Version][preview2]
61
+
62
+
#### Smartphone
63
+
64
+
![iOS and Android Version][preview3]
65
+
66
+
#### Smartphone (older-generation)
67
+
68
+
![Older Generation Smartphone Version][preview4]
69
+
20
70
## Installation
21
71
22
-
Installing the drop-in replacement for Apache 2 error pages comes in two parts. You will need to copy all the files contained within the `/dist/` folder to a location on your server. Secondly, you will need to edit your `apache.conf` or `httpd.conf` file to link the error pages to your server.
72
+
Installing the drop-in replacement for Apache 2 error pages comes in two parts. First, you need to copy all the files contained within the `/dist/` folder to a location on your server. Second, you need to edit your `apache.conf` or `httpd.conf` file to link the error pages to your server installation.
23
73
24
74
### Copying the Error Pages
25
75
@@ -30,7 +80,7 @@ Do not replace the default error pages with this project's files. Instead, insta
30
80
```bash
31
81
$ cd Apache-Error-Pages/
32
82
$ cp -R dist/ /usr/local/var/www/error-pages
33
-
$ chown -R www:apache /usr/local/var/www/error-pages # see note below.
83
+
$ chown -R www:apache /usr/local/var/www/error-pages # see note below.
34
84
```
35
85
36
86
**NB: _Ensure that you replace `www` and `apache`, in the `chown` command above, with your web-server's default user and group._**
Save your file and then test your configuration changes by executing the following.
@@ -202,7 +264,7 @@ Save your file and then test your configuration changes by executing the followi
202
264
$ sudo apachectl configtest
203
265
```
204
266
205
-
If you get any message other than `Syntax OK` then you've done something wrong. You will need to check your changes made to the conf files and see where you may have gone wrong.
267
+
If you get any message other than `Syntax OK` then you've done something wrong. You will need to check your changes made to the `.conf` file and see where you may have gone wrong.
206
268
207
269
The final step is to restart Apache so that it loads your new error pages.
208
270
@@ -220,21 +282,20 @@ There is a `bash` script, found at [/src/scripts/minify][script] which runs the
220
282
221
283
You will need to install both `html-minifier` as well as `postcss` before you can execute the minifaction script.
222
284
223
-
#### Installing `html-minifier`
285
+
#### Installing html-minifier
224
286
225
287
The best way to install `html-minifier` is by running the following commands in the project root folder.
226
288
227
289
```bash
228
290
$ cd Apache-Error-Pages/
229
-
$ rm -Rf html-minifier/ # ensure you are using the latest version.
Once `html-minifier` is installed you can install `postcss` as follows:
298
+
Once `html-minifier` is installed you can install `postcss` as follows. Make sure that you are in the `/html-minifier/` folder when running the below commands (i.e. `$ cd html-minifier/`).
238
299
239
300
```bash
240
301
$ npm install cssnano --save
@@ -248,6 +309,34 @@ You can run the script with this command:
248
309
```bash
249
310
$ cd src/
250
311
$ ./scripts/minify
312
+
313
+
# expected output when executing `minify`:
314
+
../dist folder reset
315
+
400.html minified
316
+
401.html minified
317
+
403.html minified
318
+
404.html minified
319
+
405.html minified
320
+
406.html minified
321
+
407.html minified
322
+
408.html minified
323
+
411.html minified
324
+
413.html minified
325
+
414.html minified
326
+
415.html minified
327
+
429.html minified
328
+
431.html minified
329
+
500.html minified
330
+
501.html minified
331
+
502.html minified
332
+
503.html minified
333
+
504.html minified
334
+
505.html minified
335
+
breakpoints.css minified
336
+
fontawesome-all.css minified
337
+
google-fonts.css minified
338
+
main.css minified
339
+
Minification complete!
251
340
```
252
341
253
342
There are no options for running this script. Executing this command will:
@@ -346,3 +435,7 @@ Thanks go out to the following for the inspiration, images, icons and, in some c
0 commit comments