Skip to content

Commit 409bef7

Browse files
Merge pull request hestiacp#1118 from ianklemm/patch-2
Add Apache error documents
2 parents 5789d94 + d84a547 commit 409bef7

File tree

12 files changed

+96
-0
lines changed

12 files changed

+96
-0
lines changed

install/debian/7/apache2/apache2.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,11 @@ Include conf.d/
8585

8686
# Include the virtual host configurations:
8787
#Include sites-enabled/
88+
89+
ErrorDocument 403 /error/403.html
90+
ErrorDocument 404 /error/404.html
91+
ErrorDocument 500 /error/50x.html
92+
ErrorDocument 501 /error/50x.html
93+
ErrorDocument 502 /error/50x.html
94+
ErrorDocument 503 /error/50x.html
95+
ErrorDocument 506 /error/50x.html

install/debian/8/apache2/apache2.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,11 @@ Include conf.d/
8484

8585
# Include the virtual host configurations:
8686
#Include sites-enabled/
87+
88+
ErrorDocument 403 /error/403.html
89+
ErrorDocument 404 /error/404.html
90+
ErrorDocument 500 /error/50x.html
91+
ErrorDocument 501 /error/50x.html
92+
ErrorDocument 502 /error/50x.html
93+
ErrorDocument 503 /error/50x.html
94+
ErrorDocument 506 /error/50x.html

install/ubuntu/12.04/apache2/apache2.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,11 @@ Include conf.d/
8484

8585
# Include the virtual host configurations:
8686
#Include sites-enabled/
87+
88+
ErrorDocument 403 /error/403.html
89+
ErrorDocument 404 /error/404.html
90+
ErrorDocument 500 /error/50x.html
91+
ErrorDocument 501 /error/50x.html
92+
ErrorDocument 502 /error/50x.html
93+
ErrorDocument 503 /error/50x.html
94+
ErrorDocument 506 /error/50x.html

install/ubuntu/12.10/apache2/apache2.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,11 @@ Include conf.d/
8484

8585
# Include the virtual host configurations:
8686
#Include sites-enabled/
87+
88+
ErrorDocument 403 /error/403.html
89+
ErrorDocument 404 /error/404.html
90+
ErrorDocument 500 /error/50x.html
91+
ErrorDocument 501 /error/50x.html
92+
ErrorDocument 502 /error/50x.html
93+
ErrorDocument 503 /error/50x.html
94+
ErrorDocument 506 /error/50x.html

install/ubuntu/13.04/apache2/apache2.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,11 @@ Include conf.d/
8484

8585
# Include the virtual host configurations:
8686
#Include sites-enabled/
87+
88+
ErrorDocument 403 /error/403.html
89+
ErrorDocument 404 /error/404.html
90+
ErrorDocument 500 /error/50x.html
91+
ErrorDocument 501 /error/50x.html
92+
ErrorDocument 502 /error/50x.html
93+
ErrorDocument 503 /error/50x.html
94+
ErrorDocument 506 /error/50x.html

install/ubuntu/13.10/apache2/apache2.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,11 @@ Include conf.d/
8484

8585
# Include the virtual host configurations:
8686
#Include sites-enabled/
87+
88+
ErrorDocument 403 /error/403.html
89+
ErrorDocument 404 /error/404.html
90+
ErrorDocument 500 /error/50x.html
91+
ErrorDocument 501 /error/50x.html
92+
ErrorDocument 502 /error/50x.html
93+
ErrorDocument 503 /error/50x.html
94+
ErrorDocument 506 /error/50x.html

install/ubuntu/14.04/apache2/apache2.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,11 @@ Include conf.d/
8484

8585
# Include the virtual host configurations:
8686
#Include sites-enabled/
87+
88+
ErrorDocument 403 /error/403.html
89+
ErrorDocument 404 /error/404.html
90+
ErrorDocument 500 /error/50x.html
91+
ErrorDocument 501 /error/50x.html
92+
ErrorDocument 502 /error/50x.html
93+
ErrorDocument 503 /error/50x.html
94+
ErrorDocument 506 /error/50x.html

install/ubuntu/14.10/apache2/apache2.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,11 @@ Include conf.d/
8484

8585
# Include the virtual host configurations:
8686
#Include sites-enabled/
87+
88+
ErrorDocument 403 /error/403.html
89+
ErrorDocument 404 /error/404.html
90+
ErrorDocument 500 /error/50x.html
91+
ErrorDocument 501 /error/50x.html
92+
ErrorDocument 502 /error/50x.html
93+
ErrorDocument 503 /error/50x.html
94+
ErrorDocument 506 /error/50x.html

install/ubuntu/15.04/apache2/apache2.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,11 @@ Include conf.d/
8484

8585
# Include the virtual host configurations:
8686
#Include sites-enabled/
87+
88+
ErrorDocument 403 /error/403.html
89+
ErrorDocument 404 /error/404.html
90+
ErrorDocument 500 /error/50x.html
91+
ErrorDocument 501 /error/50x.html
92+
ErrorDocument 502 /error/50x.html
93+
ErrorDocument 503 /error/50x.html
94+
ErrorDocument 506 /error/50x.html

install/ubuntu/15.10/apache2/apache2.conf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,11 @@ Include conf.d/
8484

8585
# Include the virtual host configurations:
8686
#Include sites-enabled/
87+
88+
ErrorDocument 403 /error/403.html
89+
ErrorDocument 404 /error/404.html
90+
ErrorDocument 500 /error/50x.html
91+
ErrorDocument 501 /error/50x.html
92+
ErrorDocument 502 /error/50x.html
93+
ErrorDocument 503 /error/50x.html
94+
ErrorDocument 506 /error/50x.html

0 commit comments

Comments
 (0)