Add www.debconf.org vhost on static
authorJulien Cristau <jcristau@debian.org>
Thu, 17 Jan 2019 15:04:07 +0000 (16:04 +0100)
committerJulien Cristau <jcristau@debian.org>
Thu, 17 Jan 2019 15:04:07 +0000 (16:04 +0100)
modules/roles/manifests/static_mirror.pp
modules/roles/templates/static-mirroring/vhost/static-vhosts-simple.erb

index 00fcc9a..c7d3091 100644 (file)
@@ -157,6 +157,7 @@ class roles::static_mirror {
        ssl::service { 'miniconf10.debconf.org'        : ensure => "ifstatic", notify  => Exec['service apache2 reload'], key => true, }
        ssl::service { 'video.debconf.org'             : ensure => "present",  notify  => Exec['service apache2 reload'], key => true, }
        ssl::service { 'wiki.debconf.org'              : ensure => "ifstatic", notify  => Exec['service apache2 reload'], key => true, }
+       ssl::service { 'www.debconf.org'               : ensure => "ifstatic", notify  => Exec['service apache2 reload'], key => true, }
 
        if has_role('static_mirror_onion') {
                if ! $onion_v4_addr {
index f9dd941..7ae70fb 100644 (file)
        RewriteRule ^/load.php$ /load-jquery.checkbox.js [L,QSD]
 </Macro>
 
+<Macro vstatic-vhost-extra-www.debconf.org>
+       ServerAlias www-test.debconf.org
+
+       <Directory /srv/static.debian.org/mirrors/www.debconf.org/cur>
+               Options +Includes
+       </Directory>
+
+       AddOutputFilter INCLUDES .shtml
+</Macro>
+
 <%=
 
 def vhost(lines, sn, kwargs={})