|
|
@ -1470,10 +1470,9 @@ location ^~ {from} {\n\ |
|
|
|
proxy_dir = "{}/{}".format(self.proxyPath, site_name) |
|
|
|
proxy_dir = "{}/{}".format(self.proxyPath, site_name) |
|
|
|
proxy_conf = proxy_dir + '/' + proxy_id + '.conf' |
|
|
|
proxy_conf = proxy_dir + '/' + proxy_id + '.conf' |
|
|
|
proxy_txt = "{}/{}/{}.conf.txt".format(self.proxyPath, site_name, proxy_id) |
|
|
|
proxy_txt = "{}/{}/{}.conf.txt".format(self.proxyPath, site_name, proxy_id) |
|
|
|
if os.path.exists(proxy_conf): |
|
|
|
if os.path.exists(proxy_txt): |
|
|
|
mw.execShell('mv ' + proxy_txt + ' ' + proxy_conf) |
|
|
|
mw.execShell('mv ' + proxy_txt + ' ' + proxy_conf) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if len(self.close_proxy) > 0: |
|
|
|
if len(self.close_proxy) > 0: |
|
|
|
mw.restartWeb() |
|
|
|
mw.restartWeb() |
|
|
|
self.close_proxy = [] |
|
|
|
self.close_proxy = [] |
|
|
|