]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/roles/templates/static-mirroring/static-vhost.conf.erb
Serve xhtml from generic cofiguration
[dsa-puppet.git] / modules / roles / templates / static-mirroring / static-vhost.conf.erb
index 4b8640cee89bfab416d4796191c27e00db9c0a36..2e79bcbdd96deea22fa5d76654bd282d44a79ab2 100644 (file)
@@ -6,20 +6,22 @@
        </IfModule>
        ServerSignature On
 
-       DocumentRoot /srv/static.debian.org/cur/$name/
-       <Directory /srv/static.debian.org/cur/$name/>
-               AllowOverride FileInfo
-               Options Multiviews Indexes FollowSymLinks
+       DocumentRoot /srv/static.debian.org/mirrors/$name/cur
+       <Directory /srv/static.debian.org/mirrors/$name/cur>
+               AllowOverride FileInfo Indexes Options=Multiviews
+               Options Multiviews Indexes FollowSymLinks Includes
                IndexOptions FancyIndexing NameWidth=*
                Order allow,deny
                Allow from all
        </Directory>
 
+       DefaultType text/plain
        AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
+       AddOutputFilter INCLUDES .xhtml
 </Macro>
 
 
-<Macro common-static-vhost $name>
+<Macro common-static-vhost-with-extra $name $extra>
        <Virtualhost <%= vhost_listen %> >
                ServerName $name
                ServerAdmin debian-admin@lists.debian.org
@@ -28,6 +30,7 @@
                CustomLog /var/log/apache2/$name-access.log privacy
 
                Use common-static-base $name
+               $extra
        </VirtualHost>
 </Macro>
 
@@ -46,5 +49,9 @@
        </VirtualHost>
 </Macro>
 
+<Macro common-static-vhost $name>
+       Use common-static-vhost-with-extra $name "# nada"
+</Macro>
+
 
 # vim:ft=apache: