X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/a1780627367305e7bd8987ad71fec090cda8743f..a7de9e4abe76f8cd647eea949f99687fcc19254c:/cookbooks/mediawiki/templates/default/apache.erb diff --git a/cookbooks/mediawiki/templates/default/apache.erb b/cookbooks/mediawiki/templates/default/apache.erb index d5485a620..3182f8d58 100644 --- a/cookbooks/mediawiki/templates/default/apache.erb +++ b/cookbooks/mediawiki/templates/default/apache.erb @@ -32,12 +32,7 @@ DocumentRoot <%= @directory %> - php_admin_value open_basedir <%= @directory %>/:/usr/share/php/:/dev/null:/tmp/ - #php_admin_value disable_functions "exec,shell_exec,system,passthru,popen,proc_open" - php_value memory_limit 500M - php_value max_execution_time 240 - php_value upload_max_filesize 70M - php_value post_max_size 100M + ProxyTimeout 300 RewriteCond %{SERVER_NAME} !=<%= @name %> RewriteRule ^/(.*)$ https://<%= @name %>/$1 [R=permanent] @@ -97,17 +92,22 @@ > Options -Indexes Require all granted + + + SetHandler "proxy:unix:/run/php/<%= @name %>.sock|fcgi://127.0.0.1" + /w/images/> - # No php execution in the upload area - php_admin_flag engine off Options -ExecCGI -Includes -Indexes AllowOverride None AddType text/plain .html .htm .shtml <% if @private_site -%> Require all denied <% end -%> + + SetHandler None + /w/images/thumb/> @@ -142,7 +142,9 @@ Options -ExecCGI -Includes -Indexes AllowOverride None AddType text/plain .html .htm .shtml - php_admin_flag engine off + + SetHandler None + /dump/>