lines << "Use prepare-static-vhost #{sn}"
- if kwargs[:ssl]
+ if kwargs[:ssl] and kwargs[:ssl_optional]
+ lines << "Use static-vhost-plain-#{sn}"
+ lines << "Use static-vhost-ssl-#{sn}"
+ elsif kwargs[:ssl]
lines << "Use common-dsa-vhost-https-redirect #{sn}"
lines << "Use static-vhost-ssl-#{sn}"
else
end
lines = []
-vhost(lines, "mozilla.debian.net")
+vhost(lines, "mozilla.debian.net" , :ssl => true, :ssl_optional => true)
vhost(lines, "backports.debian.org" , :ssl => true)
-vhost(lines, "incoming.debian.org")
-vhost(lines, "incoming.ports.debian.org")
-vhost(lines, "debdeltas.debian.net")
+vhost(lines, "incoming.debian.org" , :ssl => true, :ssl_optional => true)
+vhost(lines, "incoming.ports.debian.org" , :ssl => true, :ssl_optional => true)
+vhost(lines, "debdeltas.debian.net" , :ssl => true)
vhost(lines, "news.debian.net" , :ssl => true)
vhost(lines, "debaday.debian.net" , :ssl => true)
vhost(lines, "timeline.debian.net" , :ssl => true)