-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFE-5098] Support for customizing HAProxy error code response page for http error code 504 #628
Open
natlibfi-jonollil
wants to merge
2
commits into
openshift:master
Choose a base branch
from
natlibfi-jonollil:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
HTTP/1.0 403 Forbidden | ||
Pragma: no-cache | ||
Cache-Control: private, max-age=0, no-cache, no-store | ||
Connection: close | ||
Content-Type: text/html | ||
|
||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<style type="text/css"> | ||
body { | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
line-height: 1.66666667; | ||
font-size: 16px; | ||
color: #333; | ||
background-color: #fff; | ||
margin: 2em 1em; | ||
} | ||
h1 { | ||
font-size: 28px; | ||
font-weight: 400; | ||
} | ||
p { | ||
margin: 0 0 10px; | ||
} | ||
.alert.alert-info { | ||
background-color: #F0F0F0; | ||
margin-top: 30px; | ||
padding: 30px; | ||
} | ||
.alert p { | ||
padding-left: 35px; | ||
} | ||
ul { | ||
padding-left: 51px; | ||
position: relative; | ||
} | ||
li { | ||
font-size: 14px; | ||
margin-bottom: 1em; | ||
} | ||
p.info { | ||
position: relative; | ||
font-size: 20px; | ||
} | ||
p.info:before, p.info:after { | ||
content: ""; | ||
left: 0; | ||
position: absolute; | ||
top: 0; | ||
} | ||
p.info:before { | ||
background: #0066CC; | ||
border-radius: 16px; | ||
color: #fff; | ||
content: "i"; | ||
font: bold 16px/24px serif; | ||
height: 24px; | ||
left: 0px; | ||
text-align: center; | ||
top: 4px; | ||
width: 24px; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
body { | ||
margin: 6em; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div> | ||
<h1>Forbidden</h1> | ||
<p>Request forbidden by administrative rules. The server can be reached and understood the request, but refuses to take any further action</p> | ||
|
||
<div class="alert alert-info"> | ||
<p class="info"> | ||
Possible reasons you are seeing this page: | ||
</p> | ||
<ul> | ||
<li> | ||
<strong>Authorization parameters are missing or set wrong.</strong> | ||
Check your authorization parameters. | ||
</li> | ||
<li> | ||
<strong>Internet protocol address whitelisting.</strong> | ||
Your internet protocol address is not whitelisted, contact to service host. | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
HTTP/1.0 504 Gateway Timeout | ||
Pragma: no-cache | ||
Cache-Control: private, max-age=0, no-cache, no-store | ||
Connection: close | ||
Content-Type: text/html | ||
|
||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
|
||
<style type="text/css"> | ||
body { | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
line-height: 1.66666667; | ||
font-size: 16px; | ||
color: #333; | ||
background-color: #fff; | ||
margin: 2em 1em; | ||
} | ||
h1 { | ||
font-size: 28px; | ||
font-weight: 400; | ||
} | ||
p { | ||
margin: 0 0 10px; | ||
} | ||
.alert.alert-info { | ||
background-color: #F0F0F0; | ||
margin-top: 30px; | ||
padding: 30px; | ||
} | ||
.alert p { | ||
padding-left: 35px; | ||
} | ||
ul { | ||
padding-left: 51px; | ||
position: relative; | ||
} | ||
li { | ||
font-size: 14px; | ||
margin-bottom: 1em; | ||
} | ||
p.info { | ||
position: relative; | ||
font-size: 20px; | ||
} | ||
p.info:before, p.info:after { | ||
content: ""; | ||
left: 0; | ||
position: absolute; | ||
top: 0; | ||
} | ||
p.info:before { | ||
background: #0066CC; | ||
border-radius: 16px; | ||
color: #fff; | ||
content: "i"; | ||
font: bold 16px/24px serif; | ||
height: 24px; | ||
left: 0px; | ||
text-align: center; | ||
top: 4px; | ||
width: 24px; | ||
} | ||
|
||
@media (min-width: 768px) { | ||
body { | ||
margin: 6em; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div> | ||
<h1>Gateway timeout</h1> | ||
<p>The server did not respond in time. Please try again later.</p> | ||
|
||
<div class="alert alert-info"> | ||
<p class="info"> | ||
Possible reasons you are seeing this page: | ||
</p> | ||
<ul> | ||
<li> | ||
<strong>Request processing is taking too long.</strong> | ||
The request could not be completed within the given time. | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also even though the lines are not currently ordered, we would ask you to order these lines by error code number: 403 404 503 504. Note that these capitalized env variables have exist so that people can customize their error pages if they don't want the default.