summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCarlos Garcia Campos <cgarcia@igalia.com>2022-04-12 16:45:52 +0200
committerCarlos Garcia Campos <cgarcia@igalia.com>2022-04-22 12:12:41 +0200
commit245955f8aca5ac19c86be7945c36ce1a80a7b703 (patch)
tree7b1e97c92df55b8f07ef0d6d415ead0679969987 /tests
parentbdf896b96daca249a83590d5b8f355276e5ff048 (diff)
downloadlibsoup-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 'tests')
-rw-r--r--tests/httpd.conf.in6
1 files changed, 5 insertions, 1 deletions
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
<VirtualHost 127.0.0.1:47526>