From 245955f8aca5ac19c86be7945c36ce1a80a7b703 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Tue, 12 Apr 2022 16:45:52 +0200 Subject: 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. --- tests/httpd.conf.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/httpd.conf.in b/tests/httpd.conf.in index e84c182a..66f081dd 100644 --- a/tests/httpd.conf.in +++ b/tests/httpd.conf.in @@ -13,7 +13,7 @@ GracefulShutdownTimeout 1 # Change this to "./error.log" if it's failing and you don't know why ErrorLog /dev/null -LoadModule mpm_prefork_module @APACHE_MODULE_DIR@/mod_mpm_prefork.so +LoadModule mpm_event_module @APACHE_MODULE_DIR@/mod_mpm_event.so LoadModule alias_module @APACHE_MODULE_DIR@/mod_alias.so LoadModule auth_basic_module @APACHE_MODULE_DIR@/mod_auth_basic.so LoadModule auth_digest_module @APACHE_MODULE_DIR@/mod_auth_digest.so @@ -29,11 +29,15 @@ LoadModule proxy_http_module @APACHE_MODULE_DIR@/mod_proxy_http.so LoadModule proxy_connect_module @APACHE_MODULE_DIR@/mod_proxy_connect.so LoadModule ssl_module @APACHE_SSL_MODULE_DIR@/mod_ssl.so @IF_HAVE_MOD_UNIXD@LoadModule unixd_module @APACHE_SSL_MODULE_DIR@/mod_unixd.so +@IF_HAVE_MOD_HTTP2@LoadModule http2_module @APACHE_HTTP2_MODULE_DIR@/mod_http2.so DirectoryIndex index.txt TypesConfig /dev/null Redirect permanent /redirected /index.txt +# Prefer http1 for now because most of the tests expect http1 behavior. +Protocols http/1.1 h2 + # Proxy #1: unauthenticated Listen 127.0.0.1:47526 -- cgit v1.2.1