set apache
This commit is contained in:
parent
754ad94a5f
commit
ab1cf8ae5c
3
vhost-apache2/apache2_set
Normal file
3
vhost-apache2/apache2_set
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
a2enmod ssl
|
||||||
|
a2enmod rewrite
|
||||||
|
systemctl restart apache2
|
||||||
@ -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")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user