Apache performance (#2202)
* Apache performance API: Use SetEnvIf if available and fallback to RewriteRule Docker: Disable unused modules. Docker: Hard-include .htaccess to avoid having to scan for changes in that file. Docker: Disable security check of symlinks, which we do not use ayway. * Apache readme * Docker/Apache tuning Run cron job with correct www-data user instead of root Remove PHP GMP module uneeded for 64-bit Docker image Add option to mount custom .htaccess for HTTP authentication Re-add Apache module for HTTP authentication Move Alpine-specific instructions to Docker file (instead of Apache conf) to make it easier to have other base images than Alpinepull/2207/head
parent
92de09bac4
commit
a6623b7b2f
8 changed files with 42 additions and 31 deletions
@ -1,4 +1,9 @@ |
||||
<IfModule mod_rewrite.c> |
||||
RewriteEngine on |
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
||||
<IfModule mod_setenvif.c> |
||||
SetEnvIf "^Authorization$" "(.*)" HTTP_AUTHORIZATION=$1 |
||||
</IfModule> |
||||
<IfModule !mod_setenvif.c> |
||||
<IfModule mod_rewrite.c> |
||||
RewriteEngine on |
||||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] |
||||
</IfModule> |
||||
</IfModule> |
||||
|
@ -1 +1 @@ |
||||
.htaccess |
||||
.ht* |
||||
|
Loading…
Reference in new issue