Fixes in proxy virtualhost
This commit is contained in:
parent
b2b879c3f8
commit
d3d041f569
9 changed files with 84 additions and 21 deletions
|
|
@ -155,14 +155,14 @@ if args.path!='/':
|
|||
</Location> \n\
|
||||
".format(args.path[:-1], home_user, home_user, args.path[:-1])
|
||||
|
||||
name_file='/home/{}/{}-002-{}.conf'.format(system_user, args.domain, os.path.basename(args.path[1:-1]))
|
||||
name_file='/home/{}/{}-{}.conf'.format(system_user, args.domain, os.path.basename(args.path[1:-1]))
|
||||
|
||||
with open(name_file, 'w') as f:
|
||||
f.write(alias_apache)
|
||||
|
||||
|
||||
print('Updating apache configuration for wordpress outside of htdocs...')
|
||||
if subprocess.call('sudo mv {} /etc/{}/vhosts.d/extra'.format(name_file, apache_cmd), shell=True) > 0:
|
||||
if subprocess.call('sudo mv {} /etc/{}/vhosts.d/extra/proxyphp'.format(name_file, apache_cmd), shell=True) > 0:
|
||||
print('Error')
|
||||
sys.exit(1)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue