Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nginx-proxy
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hebotek
nginx-proxy
Commits
1f92e89e
Commit
1f92e89e
authored
Feb 27, 2019
by
Florian Heder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Redirect all 503 Errors to error503.html Page
parent
d970a591
Pipeline
#26
failed with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
1 deletion
+34
-1
docker-compose.yml
docker-compose.yml
+1
-0
error503.html
html/error503.html
+22
-0
nginx-redirects.conf
nginx-redirects.conf
+9
-0
nginx.tmpl
nginx.tmpl
+2
-1
No files found.
docker-compose.yml
View file @
1f92e89e
...
...
@@ -13,6 +13,7 @@ services:
-
vhost:/etc/nginx/vhost.d
-
html:/usr/share/nginx/html
-
certs:/etc/nginx/certs
-
./html:/etc/nginx/html
labels
:
-
"
com.github.jrcs.letsencrypt_nginx_proxy_companion.nginx_proxy=true"
...
...
html/error503.html
0 → 100644
View file @
1f92e89e
<html>
<head>
<title>
Kein Eintrag
</title>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
>
</head>
<body>
<h1>
Willkommen
</h1>
<p>
Unter dieser Domain ist uns kein Eintrag bekannt!
</p>
<p>
Bitte wenden Sie sich an den
<a
href=
"https://www.hebotek.at/kontakt/"
>
Serveradministrator
</a>
.
</p>
<hr
/>
<p></p>
<h1>
Welcome
</h1>
<p>
We couldn't find any entry for the given domain.
</p>
<p>
Please contact the
<a
href=
"https://www.hebotek.com/contact/"
>
server administrator
</a>
.
</p>
</body>
</html>
nginx-redirects.conf
0 → 100644
View file @
1f92e89e
# docker cp nginx-redirects.conf nginx-proxy:/etc/nginx/conf.d/
# server {
# server_name from-domain.localhost;
# listen 80;
# access_log /var/log/nginx/access.log vhost;
# return 307 http://to-domain.localhost;
# }
nginx.tmpl
View file @
1f92e89e
...
...
@@ -96,7 +96,8 @@ server {
listen [::]:80;
{{ end }}
access_log /var/log/nginx/access.log vhost;
return 503;
rewrite ^(.*)$ /error503.html break;
}
{{ if (and (exists "/etc/nginx/certs/default.crt") (exists "/etc/nginx/certs/default.key")) }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment