set apache

This commit is contained in:
Gitea 2020-06-25 12:48:54 +00:00
parent 754ad94a5f
commit ab1cf8ae5c
2 changed files with 4 additions and 1 deletions

View File

@ -0,0 +1,3 @@
a2enmod ssl
a2enmod rewrite
systemctl restart apache2

View File

@ -66,7 +66,7 @@ def vhost_add(domain):
global html_dir_path, logs_dir_path, re_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: if re.match(re_domain, domain) is None:
print("Invalid domain name: " + domain + " -> pass") print("Invalid domain name: " + domain + " -> pass")