webserver-config/install/error-pages/403.html
Joby Elliott 2a5b05b320 Refactor error page handling and configuration
Simplify the error page handling and configuration by refactoring the code. Removed the unnecessary error message "IP banned for bad behavior" and replaced it with a generic 403 error response. Also, added new error pages for 404, 503, and 50x errors. The error pages are now stored in the /var/www/error-pages directory. Updated the nginx configuration to use the new error pages and added PHP handling for the error pages.
2024-10-23 19:37:16 -06:00

69 lines
No EOL
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>403 Forbidden</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
line-height: 1.6;
max-width: 600px;
margin: 40px auto;
padding: 0 20px;
color: #333;
background: #fff;
}
h1 {
font-size: 24px;
margin-bottom: 16px;
color: #d00;
}
p {
margin: 12px 0;
}
.help {
background: #f5f5f5;
border-left: 4px solid #ddd;
padding: 12px;
margin: 20px 0;
}
@media (prefers-color-scheme: dark) {
body {
background: #222;
color: #ddd;
}
h1 {
color: #ff4444;
}
.help {
background: #333;
border-left-color: #555;
}
}
</style>
</head>
<body>
<main role="main">
<h1>403 Access Forbidden</h1>
<p>Sorry, you don't have permission to access this resource.</p>
<div class="help">
<p>If you believe this is a mistake:</p>
<ul>
<li>Check if you're properly logged in</li>
<li>Verify you have the correct URL</li>
<li>Contact the site administrator if problems persist</li>
</ul>
</div>
</main>
</body>
</html>