Inside a conditional to affect only 2.4, set User, Group, and the
module config to load mpm_event. This is normally done with the
default configuration files, but since this abbreviated conf bypasses
those, we must set them here.
Signed-off-by: Dan Mick <dan.mick@inktank.com>
Listen {port}
ServerName {host}
+<IfVersion >= 2.4>
+ User {user}
+ Group {group}
+ {apache24_modconfig}
+</IfVersion>
+
ServerRoot {testdir}/apache
ErrorLog {testdir}/archive/apache.{client}/error.log
LogFormat "%h l %u %t \"%r\" %>s %b \"{{Referer}}i\" \"%{{User-agent}}i\"" combined
if system_type == 'deb':
mod_path = '/usr/lib/apache2/modules'
print_continue = 'on'
+ user = 'www-data'
+ group = 'www-data'
+ apache24_modconfig = '''
+ IncludeOptional /etc/apache2/mods-enabled/mpm_event.conf
+ IncludeOptional /etc/apache2/mods-enabled/mpm_event.load'''
else:
mod_path = '/usr/lib64/httpd/modules'
print_continue = 'off'
+ user = 'apache'
+ group = 'apache'
+ apache24_modconfig = \
+ 'IncludeOptional /etc/httpd/conf.modules.d/00-mpm.conf'
host, port = role_endpoints[client]
with file(src, 'rb') as f:
conf = f.read().format(
port=port,
client=client,
idle_timeout=idle_timeout,
+ user=user,
+ group=group,
+ apache24_modconfig=apache24_modconfig,
)
teuthology.write_file(
remote=remote,