AAAAAAAAAAAAAAAA
This commit is contained in:
parent
369eacc8c3
commit
544e368d13
3 changed files with 6 additions and 7 deletions
|
@ -3,5 +3,4 @@
|
||||||
# copy server files
|
# copy server files
|
||||||
cp -r /custom/vhost.d/* /etc/nginx/vhost.d
|
cp -r /custom/vhost.d/* /etc/nginx/vhost.d
|
||||||
cp -r /custom/conf.d/* /etc/nginx/conf.d
|
cp -r /custom/conf.d/* /etc/nginx/conf.d
|
||||||
|
cp -r /custom/error_pages/* /usr/share/nginx/html
|
||||||
mv /custom/error_pages /usr/share/nginx/html/errors
|
|
|
@ -1,6 +1,6 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>503 Error</title>
|
<title>50x Error</title>
|
||||||
<style>
|
<style>
|
||||||
:root {
|
:root {
|
||||||
--background: #1e1e1e;
|
--background: #1e1e1e;
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>503 Error</h1>
|
<h1>50x Error</h1>
|
||||||
<p>Sorry, the server is currently unavailable. Please try again later.</p>
|
<p>Sorry, the server is currently unavailable. Please try again later.</p>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
|
@ -294,9 +294,9 @@ server {
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ $globals.access_log }}
|
{{ $globals.access_log }}
|
||||||
|
|
||||||
error_page 503 /503.html;
|
error_page 503 /50x.html;
|
||||||
location = /503.html {
|
location = /50x.html {
|
||||||
root /usr/share/nginx/html/errors;
|
root /usr/share/nginx/html;
|
||||||
}
|
}
|
||||||
location / {
|
location / {
|
||||||
return 503;
|
return 503;
|
||||||
|
|
Reference in a new issue