Lines Matching refs:f
87 raise Exception(f'{env.apxs} failed to query libexecdir: {p}')
92 raise Exception(f'apache modules dir does not exist: {self._mods_dir}')
152 log.error(f'failed to start httpd: {r}')
162 log.fatal(f'stopping httpd failed: {r}')
174 log.error(f'failed to reload httpd: {r}')
187 r = curl.http_get(url=f'http://{self.env.domain1}:{self.env.http_port}/')
191 log.debug(f"Server still responding after {timeout}")
199 r = curl.http_get(url=f'http://{self.env.domain1}:{self.env.http_port}/')
203 log.debug(f"Server still not responding after {timeout}")
231 'server': f'{domain1}',
236 'server': f'{domain2}',
250 if os.path.exists(os.path.join(self._mods_dir, f'mod_{m}.so')):
251 fd.write(f'LoadModule {m}_module "{self._mods_dir}/mod_{m}.so"\n')
253 fd.write(f'LoadModule curltest_module "{Httpd.MOD_CURLTEST}"\n')
255 f'ServerRoot "{self._apache_dir}"',
258 f'ErrorLog {self._error_log}',
259 f'LogLevel {self._get_log_level()}',
264 f'Listen {self.env.http_port}',
265 f'Listen {self.env.https_port}',
266 f'Listen {self.env.proxy_port}',
267 f'Listen {self.env.proxys_port}',
268 f'TypesConfig "{self._conf_dir}/mime.types',
274 f'<VirtualHost *:{self.env.http_port}>',
275 f' ServerName {domain1}',
277 f' DocumentRoot "{self._docs_dir}"',
287 f'<VirtualHost *:{self.env.https_port}>',
288 f' ServerName {domain1}',
292 f' SSLCertificateFile {creds1.cert_file}',
293 f' SSLCertificateKeyFile {creds1.pkey_file}',
294 f' DocumentRoot "{self._docs_dir}"',
305 f'<VirtualHost *:{self.env.https_port}>',
306 f' ServerName {domain1brotli}',
309 f' SSLCertificateFile {creds1.cert_file}',
310 f' SSLCertificateKeyFile {creds1.pkey_file}',
311 f' DocumentRoot "{self._docs_dir}"',
322 f'<VirtualHost *:{self.env.http_port}>',
323 f' ServerName {domain2}',
325 f' DocumentRoot "{self._docs_dir}"',
334 f'<VirtualHost *:{self.env.https_port}>',
335 f' ServerName {domain2}',
338 f' SSLCertificateFile {creds2.cert_file}',
339 f' SSLCertificateKeyFile {creds2.pkey_file}',
340 f' DocumentRoot "{self._docs_dir}/two"',
350 f'<VirtualHost *:{self.env.proxy_port}>',
351 f' ServerName {proxy_domain}',
356 f' AllowCONNECT {self.env.http_port} {self.env.https_port}',
364 f'<VirtualHost *:{self.env.proxys_port}>',
365 f' ServerName {proxy_domain}',
368 f' SSLCertificateFile {proxy_creds.cert_file}',
369 f' SSLCertificateKeyFile {proxy_creds.pkey_file}',
373 f' AllowCONNECT {self.env.http_port} {self.env.https_port}',
396 f' AuthUserFile "{self._basic_passwords}"',
450 f' <Directory {self.docs_dir}/restricted/digest>',
453 f' AuthDigestDomain "https://{servername}"',
455 f' AuthUserFile "{self._digest_passwords}"',
471 log.error(f"compiling mod_curltest failed: {p.stderr}")
472 raise Exception(f"compiling mod_curltest failed: {p.stderr}")