Fixes for ssl with mod_m,d
This commit is contained in:
parent
5883de45dd
commit
a0fce4f7b6
2 changed files with 5 additions and 4 deletions
|
|
@ -110,7 +110,8 @@ def manage():
|
||||||
|
|
||||||
real_root_dir=args.root_dir+'/htdocs'
|
real_root_dir=args.root_dir+'/htdocs'
|
||||||
|
|
||||||
aliases='ServerAlias www.'+args.domain
|
#aliases='ServerAlias www.'+args.domain
|
||||||
|
aliases=''
|
||||||
|
|
||||||
if args.aliases:
|
if args.aliases:
|
||||||
aliases='ServerAlias '+args.aliases.replace(',', ' ')
|
aliases='ServerAlias '+args.aliases.replace(',', ' ')
|
||||||
|
|
@ -213,7 +214,7 @@ def manage():
|
||||||
"RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]")
|
"RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]")
|
||||||
vhost=vhost.replace('# SSL Options', "\n".join(ssl_options_http))
|
vhost=vhost.replace('# SSL Options', "\n".join(ssl_options_http))
|
||||||
|
|
||||||
vhost+="\n\n"+vhost_ssl
|
vhost=vhost_ssl+"\n\n"+vhost
|
||||||
|
|
||||||
json_return={'error':0, 'status': 0, 'progress': 100, 'no_progress':0, 'message': 'Creating SSL Cert with Letsencrypt using mod_md...'}
|
json_return={'error':0, 'status': 0, 'progress': 100, 'no_progress':0, 'message': 'Creating SSL Cert with Letsencrypt using mod_md...'}
|
||||||
print(json.dumps(json_return))
|
print(json.dumps(json_return))
|
||||||
|
|
@ -454,7 +455,7 @@ def manage():
|
||||||
json_return['error']=1
|
json_return['error']=1
|
||||||
json_return['status']=1
|
json_return['status']=1
|
||||||
json_return['progress']=100
|
json_return['progress']=100
|
||||||
json_return['message']='Error: the config is wrong '+vhost
|
json_return['message']='Error: the config is wrong \n'+vhost
|
||||||
|
|
||||||
# Delete user
|
# Delete user
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,7 @@ class ServerTask(Task):
|
||||||
if 'debug' in self.data:
|
if 'debug' in self.data:
|
||||||
debug_opt='--debug'
|
debug_opt='--debug'
|
||||||
|
|
||||||
self.commands_to_execute=[['modules/apache/scripts/manage_apache.py', '--operation=add --domain=%s --email=%s --user=%s --root_dir=%s --type_cgi=%s --ip=%s --%s --port=%s %s %s %s' % (self.data['domain'], self.data['email'], self.data['user'], self.data['root_dir'], self.data['cgi_type'], self.data['ip'], debug_opt, self.data['port'], password, indexes, allow_override), 'sudo']]
|
self.commands_to_execute=[['modules/apache/scripts/manage_apache.py', '--operation=add --domain=%s --email=%s --user=%s --root_dir=%s --type_cgi=%s --ip=%s %s --port=%s %s %s %s' % (self.data['domain'], self.data['email'], self.data['user'], self.data['root_dir'], self.data['cgi_type'], self.data['ip'], debug_opt, self.data['port'], password, indexes, allow_override), 'sudo']]
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue