Serve xhtml from generic cofiguration
authorHéctor Orón Martínez <zumbi@debian.org>
Sat, 14 Dec 2013 01:57:32 +0000 (02:57 +0100)
committerHéctor Orón Martínez <zumbi@debian.org>
Sat, 14 Dec 2013 01:57:32 +0000 (02:57 +0100)
Signed-off-by: Héctor Orón Martínez <zumbi@debian.org>
modules/roles/templates/static-mirroring/static-vhost.conf.erb
modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb

index e3aceae..2e79bcb 100644 (file)
@@ -9,7 +9,7 @@
        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
+               Options Multiviews Indexes FollowSymLinks Includes
                IndexOptions FancyIndexing NameWidth=*
                Order allow,deny
                Allow from all
@@ -17,6 +17,7 @@
 
        DefaultType text/plain
        AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
+       AddOutputFilter INCLUDES .xhtml
 </Macro>
 
 
index 10c820c..4088d28 100644 (file)
@@ -59,10 +59,3 @@ Use common-static-vhost-with-extra www.ports.debian.org "ServerAlias www.ports-b
        ServerAdmin debian-admin@debian.org
        RedirectPermanent / http://www.ports.debian.org/
 </VirtualHost>
-
-<VirtualHost <%= vhost_listen %> >
-       ServerName ports.debian.org
-       ServerAdmin debian-admin@debian.org
-       Options MultiViews Includes
-       AddOutputFilter INCLUDES .xhtml
-</VirtualHost>