</Macro>
-<Macro common-static-vhost-with-extra $name $extra>
+<Macro common-static-vhost-with-extra $name>
<Virtualhost <%= vhost_listen %> >
ServerName $name
ServerAdmin debian-admin@lists.debian.org
CustomLog /var/log/apache2/$name-access.log privacy
Use common-static-base $name
- $extra
+ Use vhost-$name-extra
</VirtualHost>
</Macro>
<Macro common-static-vhost $name>
- Use common-static-vhost-with-extra $name "# nada"
+ <Macro vhost-$name-extra>
+ # mod macro does not like empty macros, so here's some content:
+ <Directory /non-existant>
+ </Directory>
+ </Macro>
+ Use common-static-vhost-with-extra $name
</Macro>
</Macro>
<% end -%>
+<Macro vhost-network-test.debian.org-extra>
+ ServerAlias network-test-backend.debian.org
+</Macro>
<%=
-def vhost(lines, sn, type=nil, extra=nil)
+def vhost(lines, sn, type=nil)
if scope.function_has_static_component([sn])
t = 'common-static-vhost'
if type then t += "-#{type}"; end
- e = ''
- if extra then e += " #{extra}"; end
-
- lines << "Use #{t} #{sn}#{e}"
+ lines << "Use #{t} #{sn}"
end
end
vhost(lines, "news.debian.net" , "ssl")
vhost(lines, "debaday.debian.net" , "ssl")
vhost(lines, "timeline.debian.net" , "ssl")
-vhost(lines, "network-test.debian.org" , "with-extra", '"ServerAlias network-test-backend.debian.org"')
+vhost(lines, "network-test.debian.org" , "with-extra")
vhost(lines, "blends.debian.org" , "ssl")
vhost(lines, "wnpp-by-tags.debian.net" , "ssl")
vhost(lines, "security-team.debian.org", "ssl")
vhost(lines, "fr.debconf.org" , "ssl")
vhost(lines, "miniconf10.debconf.org" , "ssl")
-vhost(lines, "deb.debian.org", "with-extra", '"Use vhost-deb.debian.org-extra"')
+vhost(lines, "deb.debian.org", "with-extra")
lines.join("\n")
-%>