diff options
author | Nicolas Vigier <boklm@mageia.org> | 2011-02-11 16:46:37 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2011-02-11 16:46:37 +0000 |
commit | 1dabe4b15e5a34d4207966acf150b4fb14fae9c2 (patch) | |
tree | 65a88d8c8a024289c54034892aad7255947c280c /deployment/websites/templates | |
parent | 782a76ecdaf656d01400812a659485b5f6052f5d (diff) | |
download | puppet-1dabe4b15e5a34d4207966acf150b4fb14fae9c2.tar puppet-1dabe4b15e5a34d4207966acf150b4fb14fae9c2.tar.gz puppet-1dabe4b15e5a34d4207966acf150b4fb14fae9c2.tar.bz2 puppet-1dabe4b15e5a34d4207966acf150b4fb14fae9c2.tar.xz puppet-1dabe4b15e5a34d4207966acf150b4fb14fae9c2.zip |
add vhost for static.mageia.org
Diffstat (limited to 'deployment/websites/templates')
-rw-r--r-- | deployment/websites/templates/vhost_static.conf | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/deployment/websites/templates/vhost_static.conf b/deployment/websites/templates/vhost_static.conf new file mode 100644 index 00000000..32a3d5ab --- /dev/null +++ b/deployment/websites/templates/vhost_static.conf @@ -0,0 +1,30 @@ +<VirtualHost *:80> + ServerName static.<%= domain %> + + DocumentRoot <%= vhostdir %> + CustomLog /var/log/httpd/static_log combined + ErrorLog /var/log/httpd/error_static_log + + 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 + + <Location /> + Allow from all + </Location> + + <Directory <%= vhostdir %>> + Order deny,allow + Allow from All + AllowOverride None + </Directory> +</VirtualHost> |