MCPcopy Create free account
hub / github.com/apache/httpd / start_vhost

Method start_vhost

test/modules/http2/env.py:116–130  ·  view source on GitHub ↗
(self, domains, port=None, doc_root="htdocs", with_ssl=None,
                    ssl_module=None, with_certificates=None)

Source from the content-addressed store, hash-verified

114 }))
115
116 def start_vhost(self, domains, port=None, doc_root="htdocs", with_ssl=None,
117 ssl_module=None, with_certificates=None):
118 super().start_vhost(domains=domains, port=port, doc_root=doc_root,
119 with_ssl=with_ssl, ssl_module=ssl_module,
120 with_certificates=with_certificates)
121 if f"noh2.{self.env.http_tld}" in domains:
122 protos = ["http/1.1"]
123 elif port == self.env.https_port or with_ssl is True:
124 protos = ["h2", "http/1.1"]
125 else:
126 protos = ["h2c", "http/1.1"]
127 if f"test2.{self.env.http_tld}" in domains:
128 protos = reversed(protos)
129 self.add(f"Protocols {' '.join(protos)}")
130 return self
131
132 def add_vhost_noh2(self):
133 domains = [f"noh2.{self.env.http_tld}", f"noh2-alias.{self.env.http_tld}"]

Callers 11

_class_scopeMethod · 0.95
_class_scopeMethod · 0.95
_class_scopeMethod · 0.95
config_fwd_proxyMethod · 0.95
add_vhost_noh2Method · 0.95
test_h2_600_05Method · 0.95
test_md_801_008Method · 0.45
test_md_920_011Method · 0.45
_class_scopeMethod · 0.45
_class_scopeMethod · 0.45
_class_scopeMethod · 0.45

Calls 2

addMethod · 0.80
joinMethod · 0.80

Tested by 10

_class_scopeMethod · 0.76
_class_scopeMethod · 0.76
_class_scopeMethod · 0.76
config_fwd_proxyMethod · 0.76
test_h2_600_05Method · 0.76
test_md_801_008Method · 0.36
test_md_920_011Method · 0.36
_class_scopeMethod · 0.36
_class_scopeMethod · 0.36
_class_scopeMethod · 0.36