vhost_tmpl
This commit is contained in:
parent
10cb7467b9
commit
4d5594d75d
@ -2,6 +2,7 @@
|
||||
|
||||
import sys, os, platform, subprocess, re, argparse
|
||||
|
||||
# only support linux
|
||||
platform_support = ['Linux']
|
||||
|
||||
html_dir_path = ""
|
||||
@ -34,11 +35,11 @@ def sanity_check_system():
|
||||
# check apache2
|
||||
r = subprocess.call("apache2 -v", shell=True) == 0
|
||||
|
||||
# check apache2 (ubuntu-style)
|
||||
# check apache2 (ubuntu)
|
||||
u = os.path.exists('/etc/apache2/sites-available/')
|
||||
|
||||
if not r and u:
|
||||
sys.exit("Apache2 (ubuntu-style) not installed on your system. Aborting...")
|
||||
sys.exit("Apache2 (ubuntu) not installed on your system. Aborting...")
|
||||
|
||||
def sanity_chek_platform():
|
||||
|
||||
|
||||
@ -35,4 +35,5 @@
|
||||
SSLEngine on
|
||||
SSLCertificateFile /etc/letsencrypt/live/%domain?/fullchain.pem
|
||||
SSLCertificateKeyFile /etc/letsencrypt/live/%domain?/privkey.pem
|
||||
Include /etc/letsencrypt/options-ssl-apache.conf
|
||||
</VirtualHost>
|
||||
Loading…
x
Reference in New Issue
Block a user