Skip to content

Commit

Permalink
Move errors to _errors
Browse files Browse the repository at this point in the history
  • Loading branch information
denysvitali committed Dec 25, 2017
1 parent 15c4f9d commit 22fd168
Show file tree
Hide file tree
Showing 31 changed files with 50 additions and 30 deletions.
2 changes: 1 addition & 1 deletion 400.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 400 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 401.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 401 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 402.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 402 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 403.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 403 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 404.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 404 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 405.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 405 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 406.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 406 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 407.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 407 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 408.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 408 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 409.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 409 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 410.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 410 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 414.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 414 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 416.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 416 - sv1</title>
<style>
html{
Expand Down
4 changes: 2 additions & 2 deletions 418.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 418 - sv1</title>
<style>
html{
background-image:url('/errors/images/teapot.jpg');
background-image:url('/_errors/images/teapot.jpg');
background-size: cover;
}

Expand Down
2 changes: 1 addition & 1 deletion 426.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 426 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 451.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 451 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 500.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 500 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 501.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 501 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 502.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 502 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 503.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 503 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 504.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 504 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 505.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 505 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 506.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 506 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 507.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 507 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 508.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 508 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 50x.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 510.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 510 - sv1</title>
<style>
html{
Expand Down
2 changes: 1 addition & 1 deletion 511.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="/errors/main.css"/>
<link rel="stylesheet" type="text/css" href="/_errors/main.css"/>
<title>Error 511 - sv1</title>
<style>
html{
Expand Down
Binary file added _errors/images/teapot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions _errors/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion snippets/error_pages.conf
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ error_page 506 /506.html;
error_page 507 /507.html;
error_page 508 /508.html;

location = /errors/main.css {
location = /_errors/ {
root /srv/http/default;
allow all;
}

location ~ /4[015][0-9].html {
root /srv/http/default;
allow all;
Expand Down

0 comments on commit 22fd168

Please sign in to comment.