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