X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/8aea98b6b35e7d8a6d0974b19c28a1399ad49a1e..ac5078a9f96753d4ff0853ec88cb8a2393fbb758:/cookbooks/wordpress/templates/default/apache.erb
diff --git a/cookbooks/wordpress/templates/default/apache.erb b/cookbooks/wordpress/templates/default/apache.erb
index aea4eb690..200c50089 100644
--- a/cookbooks/wordpress/templates/default/apache.erb
+++ b/cookbooks/wordpress/templates/default/apache.erb
@@ -27,6 +27,13 @@
# Enable SSL
#
SSLEngine on
+<% if @ssl_certificate -%>
+ SSLCertificateFile /etc/ssl/certs/<%= @ssl_certificate %>.pem
+ SSLCertificateKeyFile /etc/ssl/private/<%= @ssl_certificate %>.key
+<% end -%>
+<% if @ssl_certificate -%>
+ SSLCertificateChainFile /etc/ssl/certs/<%= @ssl_certificate_chain %>.pem
+<% end -%>
CustomLog /var/log/apache2/<%= @name %>-access.log combined
ErrorLog /var/log/apache2/<%= @name %>-error.log
@@ -50,6 +57,7 @@
RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
RewriteRule ^wp-includes/theme-compat/ - [F,L]
+ RewriteRule ^readme\.html$ [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
@@ -78,6 +86,10 @@
Require all denied
+
+ Require all denied
+
+
Require all denied