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

Method configure_httpd

test/modules/md/test_801_stapling.py:40–63  ·  view source on GitHub ↗
(self, env, domains=None, add_lines="", ssl_stapling=False)

Source from the content-addressed store, hash-verified

38 env.apache_stop()
39
40 def configure_httpd(self, env, domains=None, add_lines="", ssl_stapling=False):
41 if not isinstance(domains, list):
42 domains = [domains] if domains else []
43 conf = MDConf(env)
44 conf.add("""
45 <IfModule tls_module>
46 LogLevel tls:trace4
47 </IfModule>
48 <IfModule ssl_module>
49 LogLevel ssl:trace4
50 </IfModule>
51 """)
52 if ssl_stapling:
53 conf.add("""
54 <IfModule ssl_module>
55 SSLUseStapling On
56 SSLStaplingCache shmcb:stapling_cache(128000)
57 </IfModule>
58 """)
59 conf.add(add_lines)
60 for domain in domains:
61 conf.add_md([domain])
62 conf.add_vhost(domain)
63 return conf
64
65 # MD with stapling on/off and mod_ssl stapling off
66 # expect to only see stapling response when MD stapling is on

Callers 10

_class_scopeMethod · 0.95
test_md_801_001Method · 0.95
test_md_801_002Method · 0.95
test_md_801_003Method · 0.95
test_md_801_004Method · 0.95
test_md_801_005Method · 0.95
test_md_801_006Method · 0.95
test_md_801_007Method · 0.95
test_md_801_008Method · 0.95
test_md_801_011Method · 0.95

Calls 4

add_mdMethod · 0.95
MDConfClass · 0.85
addMethod · 0.80
add_vhostMethod · 0.80

Tested by

no test coverage detected