fix: adjusted all configuration as described in README

This commit is contained in:
Claudio Maradonna 2021-06-26 12:45:58 +02:00
parent cbd5989707
commit fedc82cee3
Signed by untrusted user: claudiomaradonna
GPG Key ID: B1EDCB4C3B05C387
13 changed files with 25 additions and 3 deletions

View File

@ -1,4 +1,6 @@
<VirtualHost *:443>
# YOUR CONFIG
# Redirect all request to a 503 return code when in maintenance mode
ErrorDocument 503 /maintenance/index.html
RewriteEngine on
@ -12,4 +14,5 @@
RewriteCond /var/www/maintenance/ALL !-f
RewriteCond /var/www/maintenance/%{SERVER_NAME} !-f
RewriteRule ^/maintenance/index.html$ / [R,L]
</VirtualHost>

View File

@ -0,0 +1,7 @@
## YOUR CONFIG HERE
<IfModule alias_module>
## OTHER CONFIG HERE
Alias "/maintenance" "/var/www/maintenance"
</IfModule>

View File

@ -0,0 +1,4 @@
## MAIN CONFIG HERE
ServerTokens Prod
ServerSignature Off

View File

@ -0,0 +1,8 @@
## MAIN CONFIG HERE
<Location "/server-status">
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>

View File

@ -10,7 +10,7 @@
</style>
<article>
<img src="maintenance.png" height=270>
<img src="maintenance/index.png" height=270>
<h1>We&rsquo;ll be back soon!</h1>
<div>
<p>We&rsquo;re performing some hacks at the moment.

View File

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

View File

@ -1,5 +1,5 @@
...
## OTHER CONFIG
password_encryption = scram-sha-256
...
## END CONFIG