From ab1cf8ae5c2285c8ad873478f55e3821c3837bd1 Mon Sep 17 00:00:00 2001 From: Gitea Date: Thu, 25 Jun 2020 12:48:54 +0000 Subject: [PATCH] set apache --- vhost-apache2/apache2_set | 3 +++ vhost-apache2/vhost.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 vhost-apache2/apache2_set diff --git a/vhost-apache2/apache2_set b/vhost-apache2/apache2_set new file mode 100644 index 0000000..bb9f345 --- /dev/null +++ b/vhost-apache2/apache2_set @@ -0,0 +1,3 @@ +a2enmod ssl +a2enmod rewrite +systemctl restart apache2 diff --git a/vhost-apache2/vhost.py b/vhost-apache2/vhost.py index 068f02f..f5b285c 100755 --- a/vhost-apache2/vhost.py +++ b/vhost-apache2/vhost.py @@ -66,7 +66,7 @@ def vhost_add(domain): global html_dir_path, logs_dir_path, re_domain - print(" adding vhost domain — " + domain) + print(" adding vhost domain - " + domain) if re.match(re_domain, domain) is None: print("Invalid domain name: " + domain + " -> pass")