mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:42:02 +02:00
committed by
Brad Warren
parent
7412099567
commit
ba84b7ab49
@@ -172,7 +172,7 @@ class MultipleVhostsTest(util.ApacheTest):
|
|||||||
def test_get_aug_internal_path(self):
|
def test_get_aug_internal_path(self):
|
||||||
from certbot_apache.configurator import get_internal_aug_path
|
from certbot_apache.configurator import get_internal_aug_path
|
||||||
internal_paths = [
|
internal_paths = [
|
||||||
"VirtualHost", "IfModule/VirtualHost", "VirtualHost", "VirtualHost",
|
"Virtualhost", "IfModule/VirtualHost", "VirtualHost", "VirtualHost",
|
||||||
"Macro/VirtualHost", "IfModule/VirtualHost", "VirtualHost",
|
"Macro/VirtualHost", "IfModule/VirtualHost", "VirtualHost",
|
||||||
"IfModule/VirtualHost"]
|
"IfModule/VirtualHost"]
|
||||||
|
|
||||||
@@ -755,7 +755,7 @@ class MultipleVhostsTest(util.ApacheTest):
|
|||||||
"encryption-example-le-ssl.conf"))
|
"encryption-example-le-ssl.conf"))
|
||||||
|
|
||||||
self.assertEqual(ssl_vhost.path,
|
self.assertEqual(ssl_vhost.path,
|
||||||
"/files" + ssl_vhost.filep + "/IfModule/VirtualHost")
|
"/files" + ssl_vhost.filep + "/IfModule/Virtualhost")
|
||||||
self.assertEqual(len(ssl_vhost.addrs), 1)
|
self.assertEqual(len(ssl_vhost.addrs), 1)
|
||||||
self.assertEqual(set([obj.Addr.fromstring("*:443")]), ssl_vhost.addrs)
|
self.assertEqual(set([obj.Addr.fromstring("*:443")]), ssl_vhost.addrs)
|
||||||
self.assertEqual(ssl_vhost.name, "encryption-example.demo")
|
self.assertEqual(ssl_vhost.name, "encryption-example.demo")
|
||||||
|
|||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
<VirtualHost *:80>
|
<Virtualhost *:80>
|
||||||
ServerName encryption-example.demo
|
ServerName encryption-example.demo
|
||||||
ServerAdmin webmaster@localhost
|
ServerAdmin webmaster@localhost
|
||||||
|
|
||||||
@@ -39,4 +39,4 @@
|
|||||||
Allow from 127.0.0.0/255.0.0.0 ::1/128
|
Allow from 127.0.0.0/255.0.0.0 ::1/128
|
||||||
</Directory>
|
</Directory>
|
||||||
|
|
||||||
</VirtualHost>
|
</Virtualhost>
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ def get_vh_truth(temp_dir, config_name):
|
|||||||
vh_truth = [
|
vh_truth = [
|
||||||
obj.VirtualHost(
|
obj.VirtualHost(
|
||||||
os.path.join(prefix, "encryption-example.conf"),
|
os.path.join(prefix, "encryption-example.conf"),
|
||||||
os.path.join(aug_pre, "encryption-example.conf/VirtualHost"),
|
os.path.join(aug_pre, "encryption-example.conf/Virtualhost"),
|
||||||
set([obj.Addr.fromstring("*:80")]),
|
set([obj.Addr.fromstring("*:80")]),
|
||||||
False, True, "encryption-example.demo"),
|
False, True, "encryption-example.demo"),
|
||||||
obj.VirtualHost(
|
obj.VirtualHost(
|
||||||
|
|||||||
Reference in New Issue
Block a user