diff options
author | Carlos Garcia Campos <cgarcia@igalia.com> | 2022-04-12 16:45:52 +0200 |
---|---|---|
committer | Carlos Garcia Campos <cgarcia@igalia.com> | 2022-04-22 12:12:41 +0200 |
commit | 245955f8aca5ac19c86be7945c36ce1a80a7b703 (patch) | |
tree | 7b1e97c92df55b8f07ef0d6d415ead0679969987 /get_apache_modules_dirs.py | |
parent | bdf896b96daca249a83590d5b8f355276e5ff048 (diff) | |
download | libsoup-245955f8aca5ac19c86be7945c36ce1a80a7b703.tar.gz |
tests: add support for apache http/2 module
Use mpm_event instead of mpm_prefork because http/2 module doesn't
support prefork. For now the server prefers http1 because that's what
all the tests using apache expect.
Diffstat (limited to 'get_apache_modules_dirs.py')
-rwxr-xr-x | get_apache_modules_dirs.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/get_apache_modules_dirs.py b/get_apache_modules_dirs.py index 73eca392..6fc1a122 100755 --- a/get_apache_modules_dirs.py +++ b/get_apache_modules_dirs.py @@ -45,7 +45,7 @@ def check_required_basic_modules(modules_path): 'mod_authz_user', 'mod_dir', 'mod_mime', - 'mod_mpm_prefork', + 'mod_mpm_event', 'mod_proxy', 'mod_proxy_http', 'mod_proxy_connect' @@ -99,6 +99,7 @@ def main(): apache_modules_dir = '' apache_ssl_module_dir = '' apache_mod_unixd_module_file = '' + apache_http2_module_dir = '' for lib_dir in ['lib', 'lib64']: for httpd_dir in ['apache', 'apache2', 'http', 'http2', 'httpd']: @@ -111,6 +112,8 @@ def main(): apache_ssl_module_dir = modules_path if check_module(modules_path, 'mod_unixd.so'): apache_mod_unixd_module_file = modules_path + if check_module(modules_path, 'mod_http2.so'): + apache_http2_module_dir = modules_path # These two are mandatory for having properly configured Apache if apache_modules_dir == '' or apache_ssl_module_dir == '': @@ -118,7 +121,8 @@ def main(): print(apache_modules_dir + ":" + apache_ssl_module_dir + ":" + - apache_mod_unixd_module_file, end='') + apache_mod_unixd_module_file + ":" + + apache_http2_module_dir, end='') if __name__ == "__main__": main() |