You've already forked nginx-snippets
initial commit
This commit is contained in:
44
errorpages/custom_400.html
Normal file
44
errorpages/custom_400.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>400 BAD REQUEST</title>
|
||||
<link rel="stylesheet" href="/errorpages/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="error-container">
|
||||
<svg width="300" height="300" viewBox="0 0 300 300"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<!-- PNG logo in the middle -->
|
||||
<image href="/errorpages/logo.png"
|
||||
width="100" height="100"
|
||||
x="100" y="100"/>
|
||||
|
||||
<!-- Arc paths -->
|
||||
<defs>
|
||||
<path id="topArc" d="M 92,150 A 58,58 0 0,1 208,150" fill="none"/>
|
||||
<path id="bottomArc" d="M 80,150 A 70,70 0 0,0 220,150" fill="none"/>
|
||||
</defs>
|
||||
|
||||
<!-- Top text -->
|
||||
<text text-anchor="middle" class="error-text">
|
||||
<textPath href="#topArc" startOffset="50%">
|
||||
BAD REQUEST
|
||||
</textPath>
|
||||
</text>
|
||||
|
||||
<!-- Bottom text -->
|
||||
<text text-anchor="middle" class="error-code">
|
||||
<textPath href="#bottomArc" startOffset="50%">
|
||||
400
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
44
errorpages/custom_401.html
Normal file
44
errorpages/custom_401.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>401 UNAUTHORIZED</title>
|
||||
<link rel="stylesheet" href="/errorpages/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="error-container">
|
||||
<svg width="300" height="300" viewBox="0 0 300 300"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<!-- PNG logo in the middle -->
|
||||
<image href="/errorpages/logo.png"
|
||||
width="100" height="100"
|
||||
x="100" y="100"/>
|
||||
|
||||
<!-- Arc paths -->
|
||||
<defs>
|
||||
<path id="topArc" d="M 92,150 A 58,58 0 0,1 208,150" fill="none"/>
|
||||
<path id="bottomArc" d="M 80,150 A 70,70 0 0,0 220,150" fill="none"/>
|
||||
</defs>
|
||||
|
||||
<!-- Top text -->
|
||||
<text text-anchor="middle" class="error-text">
|
||||
<textPath href="#topArc" startOffset="50%">
|
||||
UNAUTHORIZED
|
||||
</textPath>
|
||||
</text>
|
||||
|
||||
<!-- Bottom text -->
|
||||
<text text-anchor="middle" class="error-code">
|
||||
<textPath href="#bottomArc" startOffset="50%">
|
||||
401
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
44
errorpages/custom_402.html
Normal file
44
errorpages/custom_402.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>402 PAYMENT REQUIRED</title>
|
||||
<link rel="stylesheet" href="/errorpages/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="error-container">
|
||||
<svg width="300" height="300" viewBox="0 0 300 300"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<!-- PNG logo in the middle -->
|
||||
<image href="/errorpages/logo.png"
|
||||
width="100" height="100"
|
||||
x="100" y="100"/>
|
||||
|
||||
<!-- Arc paths -->
|
||||
<defs>
|
||||
<path id="topArc" d="M 92,150 A 58,58 0 0,1 208,150" fill="none"/>
|
||||
<path id="bottomArc" d="M 80,150 A 70,70 0 0,0 220,150" fill="none"/>
|
||||
</defs>
|
||||
|
||||
<!-- Top text -->
|
||||
<text text-anchor="middle" class="error-text">
|
||||
<textPath href="#topArc" startOffset="50%">
|
||||
PAYMENT REQUIRED
|
||||
</textPath>
|
||||
</text>
|
||||
|
||||
<!-- Bottom text -->
|
||||
<text text-anchor="middle" class="error-code">
|
||||
<textPath href="#bottomArc" startOffset="50%">
|
||||
402
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
44
errorpages/custom_403.html
Normal file
44
errorpages/custom_403.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>403 FORBIDDEN</title>
|
||||
<link rel="stylesheet" href="/errorpages/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="error-container">
|
||||
<svg width="300" height="300" viewBox="0 0 300 300"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<!-- PNG logo in the middle -->
|
||||
<image href="/errorpages/logo.png"
|
||||
width="100" height="100"
|
||||
x="100" y="100"/>
|
||||
|
||||
<!-- Arc paths -->
|
||||
<defs>
|
||||
<path id="topArc" d="M 92,150 A 58,58 0 0,1 208,150" fill="none"/>
|
||||
<path id="bottomArc" d="M 80,150 A 70,70 0 0,0 220,150" fill="none"/>
|
||||
</defs>
|
||||
|
||||
<!-- Top text -->
|
||||
<text text-anchor="middle" class="error-text">
|
||||
<textPath href="#topArc" startOffset="50%">
|
||||
FORBIDDEN
|
||||
</textPath>
|
||||
</text>
|
||||
|
||||
<!-- Bottom text -->
|
||||
<text text-anchor="middle" class="error-code">
|
||||
<textPath href="#bottomArc" startOffset="50%">
|
||||
403
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
44
errorpages/custom_404.html
Normal file
44
errorpages/custom_404.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>404 NOT FOUND</title>
|
||||
<link rel="stylesheet" href="/errorpages/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="error-container">
|
||||
<svg width="300" height="300" viewBox="0 0 300 300"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<!-- PNG logo in the middle -->
|
||||
<image href="/errorpages/logo.png"
|
||||
width="100" height="100"
|
||||
x="100" y="100"/>
|
||||
|
||||
<!-- Arc paths -->
|
||||
<defs>
|
||||
<path id="topArc" d="M 92,150 A 58,58 0 0,1 208,150" fill="none"/>
|
||||
<path id="bottomArc" d="M 80,150 A 70,70 0 0,0 220,150" fill="none"/>
|
||||
</defs>
|
||||
|
||||
<!-- Top text -->
|
||||
<text text-anchor="middle" class="error-text">
|
||||
<textPath href="#topArc" startOffset="50%">
|
||||
NOT FOUND
|
||||
</textPath>
|
||||
</text>
|
||||
|
||||
<!-- Bottom text -->
|
||||
<text text-anchor="middle" class="error-code">
|
||||
<textPath href="#bottomArc" startOffset="50%">
|
||||
404
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
44
errorpages/custom_500.html
Normal file
44
errorpages/custom_500.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>500 INTERNAL SERVER ERROR</title>
|
||||
<link rel="stylesheet" href="/errorpages/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="error-container">
|
||||
<svg width="300" height="300" viewBox="0 0 300 300"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<!-- PNG logo in the middle -->
|
||||
<image href="/errorpages/logo.png"
|
||||
width="100" height="100"
|
||||
x="100" y="100"/>
|
||||
|
||||
<!-- Arc paths -->
|
||||
<defs>
|
||||
<path id="topArc" d="M 92,150 A 58,58 0 0,1 208,150" fill="none"/>
|
||||
<path id="bottomArc" d="M 80,150 A 70,70 0 0,0 220,150" fill="none"/>
|
||||
</defs>
|
||||
|
||||
<!-- Top text -->
|
||||
<text text-anchor="middle" class="error-text">
|
||||
<textPath href="#topArc" startOffset="50%">
|
||||
INTERNAL SERVER ERROR
|
||||
</textPath>
|
||||
</text>
|
||||
|
||||
<!-- Bottom text -->
|
||||
<text text-anchor="middle" class="error-code">
|
||||
<textPath href="#bottomArc" startOffset="50%">
|
||||
500
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
44
errorpages/custom_501.html
Normal file
44
errorpages/custom_501.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>501 NOT IMPLEMENTED</title>
|
||||
<link rel="stylesheet" href="/errorpages/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="error-container">
|
||||
<svg width="300" height="300" viewBox="0 0 300 300"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<!-- PNG logo in the middle -->
|
||||
<image href="/errorpages/logo.png"
|
||||
width="100" height="100"
|
||||
x="100" y="100"/>
|
||||
|
||||
<!-- Arc paths -->
|
||||
<defs>
|
||||
<path id="topArc" d="M 92,150 A 58,58 0 0,1 208,150" fill="none"/>
|
||||
<path id="bottomArc" d="M 80,150 A 70,70 0 0,0 220,150" fill="none"/>
|
||||
</defs>
|
||||
|
||||
<!-- Top text -->
|
||||
<text text-anchor="middle" class="error-text">
|
||||
<textPath href="#topArc" startOffset="50%">
|
||||
NOT IMPLEMENTED
|
||||
</textPath>
|
||||
</text>
|
||||
|
||||
<!-- Bottom text -->
|
||||
<text text-anchor="middle" class="error-code">
|
||||
<textPath href="#bottomArc" startOffset="50%">
|
||||
501
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
44
errorpages/custom_502.html
Normal file
44
errorpages/custom_502.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>502 BAD GATEWAY</title>
|
||||
<link rel="stylesheet" href="/errorpages/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="error-container">
|
||||
<svg width="300" height="300" viewBox="0 0 300 300"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<!-- PNG logo in the middle -->
|
||||
<image href="/errorpages/logo.png"
|
||||
width="100" height="100"
|
||||
x="100" y="100"/>
|
||||
|
||||
<!-- Arc paths -->
|
||||
<defs>
|
||||
<path id="topArc" d="M 92,150 A 58,58 0 0,1 208,150" fill="none"/>
|
||||
<path id="bottomArc" d="M 80,150 A 70,70 0 0,0 220,150" fill="none"/>
|
||||
</defs>
|
||||
|
||||
<!-- Top text -->
|
||||
<text text-anchor="middle" class="error-text">
|
||||
<textPath href="#topArc" startOffset="50%">
|
||||
BAD GATEWAY
|
||||
</textPath>
|
||||
</text>
|
||||
|
||||
<!-- Bottom text -->
|
||||
<text text-anchor="middle" class="error-code">
|
||||
<textPath href="#bottomArc" startOffset="50%">
|
||||
502
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
44
errorpages/custom_503.html
Normal file
44
errorpages/custom_503.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>503 SERVICE UNAVAILABLE</title>
|
||||
<link rel="stylesheet" href="/errorpages/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="error-container">
|
||||
<svg width="300" height="300" viewBox="0 0 300 300"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<!-- PNG logo in the middle -->
|
||||
<image href="/errorpages/logo.png"
|
||||
width="100" height="100"
|
||||
x="100" y="100"/>
|
||||
|
||||
<!-- Arc paths -->
|
||||
<defs>
|
||||
<path id="topArc" d="M 92,150 A 58,58 0 0,1 208,150" fill="none"/>
|
||||
<path id="bottomArc" d="M 80,150 A 70,70 0 0,0 220,150" fill="none"/>
|
||||
</defs>
|
||||
|
||||
<!-- Top text -->
|
||||
<text text-anchor="middle" class="error-text">
|
||||
<textPath href="#topArc" startOffset="50%">
|
||||
SERVICE UNAVAILABLE
|
||||
</textPath>
|
||||
</text>
|
||||
|
||||
<!-- Bottom text -->
|
||||
<text text-anchor="middle" class="error-code">
|
||||
<textPath href="#bottomArc" startOffset="50%">
|
||||
503
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
44
errorpages/custom_504.html
Normal file
44
errorpages/custom_504.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="robots" content="noindex">
|
||||
<title>504 GATEWAY TIMEOUT</title>
|
||||
<link rel="stylesheet" href="/errorpages/style.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div class="error-container">
|
||||
<svg width="300" height="300" viewBox="0 0 300 300"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
|
||||
<!-- PNG logo in the middle -->
|
||||
<image href="/errorpages/logo.png"
|
||||
width="100" height="100"
|
||||
x="100" y="100"/>
|
||||
|
||||
<!-- Arc paths -->
|
||||
<defs>
|
||||
<path id="topArc" d="M 92,150 A 58,58 0 0,1 208,150" fill="none"/>
|
||||
<path id="bottomArc" d="M 80,150 A 70,70 0 0,0 220,150" fill="none"/>
|
||||
</defs>
|
||||
|
||||
<!-- Top text -->
|
||||
<text text-anchor="middle" class="error-text">
|
||||
<textPath href="#topArc" startOffset="50%">
|
||||
GATEWAY TIMEOUT
|
||||
</textPath>
|
||||
</text>
|
||||
|
||||
<!-- Bottom text -->
|
||||
<text text-anchor="middle" class="error-code">
|
||||
<textPath href="#bottomArc" startOffset="50%">
|
||||
504
|
||||
</textPath>
|
||||
</text>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
BIN
errorpages/logo.png
Normal file
BIN
errorpages/logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.1 KiB |
37
errorpages/style.css
Normal file
37
errorpages/style.css
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
#
|
||||
# Full height page, flexbox centers the SVG horizontally and vertically.
|
||||
#
|
||||
*/
|
||||
html, body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
body {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/*
|
||||
#
|
||||
# Force SVG to act as a block so flexbox can center it properly.
|
||||
#
|
||||
*/
|
||||
svg {
|
||||
display: block;
|
||||
}
|
||||
|
||||
/*
|
||||
#
|
||||
# Text style for the arc labels.
|
||||
#
|
||||
*/
|
||||
svg text {
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 12px;
|
||||
fill: #d90000;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
Reference in New Issue
Block a user