add 403 page

This commit is contained in:
j 2017-10-11 11:55:15 +02:00
parent 2eac09691b
commit f5bb701561
2 changed files with 27 additions and 0 deletions

View file

@ -63,6 +63,10 @@ server {
} }
error_page 400 /; error_page 400 /;
error_page 403 /403.html;
location /403.html {
root /srv/pandora/static/html;
}
error_page 404 /404.html; error_page 404 /404.html;
location /404.html { location /404.html {
root /srv/pandora/static/html; root /srv/pandora/static/html;

23
static/html/403.html Normal file
View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<title>We don't want to see this.</title>
<link rel="stylesheet" type="text/css" href="/static/oxjs/min/UI/css/UI.css"/>
<style>
body {
text-align: center;
}
img {
width: 256px;
padding-top: 128px;
}
div {
padding-top: 16px;
}
</style>
</head>
<body class="OxThemeOxmedium">
<img src="/static/png/logo.png"/>
<div class="OxSelectable">You don't want to see this.</div>
</body>
</html>