mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
test for rewrite
This commit is contained in:
parent
3e348332a9
commit
94f521553e
1 changed files with 3 additions and 3 deletions
|
|
@ -141,9 +141,9 @@ class ApacheHttp01Test(util.ApacheTest):
|
|||
with open(self.http.challenge_conf) as f:
|
||||
conf_contents = f.read()
|
||||
|
||||
alias_fmt = "Alias /.well-known/acme-challenge {0}"
|
||||
alias = alias_fmt.format(self.http.challenge_dir)
|
||||
self.assertTrue(alias in conf_contents)
|
||||
self.assertTrue("RewriteEngine on" in conf_contents)
|
||||
self.assertTrue("RewriteRule" in conf_contents)
|
||||
self.assertTrue(self.http.challenge_dir in conf_contents)
|
||||
if self.config.version < (2, 4):
|
||||
self.assertTrue("Allow from all" in conf_contents)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue