X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/4a27f30450a0757be588b16b7e69707f830de804..f07069124c9ad841f765ed1114b51b801a39fce5:/cookbooks/mediawiki/templates/default/apache.erb?ds=sidebyside
diff --git a/cookbooks/mediawiki/templates/default/apache.erb b/cookbooks/mediawiki/templates/default/apache.erb
index 586f2391e..dc3dc5eb0 100644
--- a/cookbooks/mediawiki/templates/default/apache.erb
+++ b/cookbooks/mediawiki/templates/default/apache.erb
@@ -32,8 +32,9 @@
DocumentRoot <%= @directory %>
- ProxyFCGISetEnvIf "true" PHP_ADMIN_VALUE "open_basedir=<%= @directory %>/:/usr/share/php/:/dev/null:/tmp/"
- ProxyFCGISetEnvIf "true" PHP_VALUE "memory_limit=500M\nmax_execution_time=240\nupload_max_filesize=70M\npost_max_size=100M"
+ AllowEncodedSlashes NoDecode
+
+ ProxyTimeout 300
RewriteCond %{SERVER_NAME} !=<%= @name %>
RewriteRule ^/(.*)$ https://<%= @name %>/$1 [R=permanent]
@@ -93,6 +94,10 @@
>
Options -Indexes
Require all granted
+
+
+ SetHandler "proxy:unix:/run/php/<%= @name %>.sock|fcgi://127.0.0.1"
+
/w/images/>