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: claudiomaradonna
GPG key ID: B1EDCB4C3B05C387
13 changed files with 25 additions and 3 deletions

View file

@ -1,4 +1,6 @@
<VirtualHost *:443> <VirtualHost *:443>
# YOUR CONFIG
# Redirect all request to a 503 return code when in maintenance mode # Redirect all request to a 503 return code when in maintenance mode
ErrorDocument 503 /maintenance/index.html ErrorDocument 503 /maintenance/index.html
RewriteEngine on RewriteEngine on
@ -12,4 +14,5 @@
RewriteCond /var/www/maintenance/ALL !-f RewriteCond /var/www/maintenance/ALL !-f
RewriteCond /var/www/maintenance/%{SERVER_NAME} !-f RewriteCond /var/www/maintenance/%{SERVER_NAME} !-f
RewriteRule ^/maintenance/index.html$ / [R,L] RewriteRule ^/maintenance/index.html$ / [R,L]
</VirtualHost> </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> </style>
<article> <article>
<img src="maintenance.png" height=270> <img src="maintenance/index.png" height=270>
<h1>We&rsquo;ll be back soon!</h1> <h1>We&rsquo;ll be back soon!</h1>
<div> <div>
<p>We&rsquo;re performing some hacks at the moment. <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 password_encryption = scram-sha-256
... ## END CONFIG