fix: adjusted all configuration as described in README
This commit is contained in:
parent
cbd5989707
commit
fedc82cee3
13 changed files with 25 additions and 3 deletions
|
@ -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>
|
7
apache/etc/httpd/conf/httpd-maintenance.conf
Normal file
7
apache/etc/httpd/conf/httpd-maintenance.conf
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
## YOUR CONFIG HERE
|
||||||
|
|
||||||
|
<IfModule alias_module>
|
||||||
|
## OTHER CONFIG HERE
|
||||||
|
|
||||||
|
Alias "/maintenance" "/var/www/maintenance"
|
||||||
|
</IfModule>
|
4
apache/etc/httpd/conf/httpd-no-signature.conf
Normal file
4
apache/etc/httpd/conf/httpd-no-signature.conf
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
## MAIN CONFIG HERE
|
||||||
|
|
||||||
|
ServerTokens Prod
|
||||||
|
ServerSignature Off
|
8
apache/etc/httpd/conf/httpd-server-status.conf
Normal file
8
apache/etc/httpd/conf/httpd-server-status.conf
Normal 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>
|
|
@ -10,7 +10,7 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<article>
|
<article>
|
||||||
<img src="maintenance.png" height=270>
|
<img src="maintenance/index.png" height=270>
|
||||||
<h1>We’ll be back soon!</h1>
|
<h1>We’ll be back soon!</h1>
|
||||||
<div>
|
<div>
|
||||||
<p>We’re performing some hacks at the moment.
|
<p>We’re performing some hacks at the moment.
|
Before Width: | Height: | Size: 55 KiB After Width: | Height: | Size: 55 KiB |
|
@ -1,5 +1,5 @@
|
||||||
...
|
## OTHER CONFIG
|
||||||
|
|
||||||
password_encryption = scram-sha-256
|
password_encryption = scram-sha-256
|
||||||
|
|
||||||
...
|
## END CONFIG
|
Loading…
Reference in a new issue