From 5e8c30538ec900dc6c389ea47899b10f1fa0b8e3 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 25 Jun 2013 14:41:32 +0000 Subject: Enable https for static.mageia.org --- deployment/websites/templates/vhost_static.conf | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/deployment/websites/templates/vhost_static.conf b/deployment/websites/templates/vhost_static.conf index 6521b469..866d235a 100644 --- a/deployment/websites/templates/vhost_static.conf +++ b/deployment/websites/templates/vhost_static.conf @@ -28,3 +28,36 @@ AllowOverride None + + + ServerName static.<%= domain %> + + DocumentRoot <%= vhostdir %> + CustomLog /var/log/httpd/static_log combined + ErrorLog /var/log/httpd/error_static_log + +<%= scope.function_template(["apache/vhost_ssl.conf"]) %> + + FileETag none + Header unset ETag + ExpiresActive On + ExpiresByType text/css "access plus 1 month" + ExpiresByType image/gif "access plus 2 months" + ExpiresByType image/png "access plus 2 months" + ExpiresByType image/jpeg "access plus 2 months" + ExpiresByType image/x-icon "access plus 2 months" + ExpiresByType application/x-javascript "access plus 1 month" + ExpiresByType text/javascript "access plus 1 month" + AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css + AddOutputFilterByType DEFLATE application/json text/javascript application/javascript application/x-javascript + + + Allow from all + + + > + Order deny,allow + Allow from All + AllowOverride None + + -- cgit v1.2.1