diff --git a/web/utils/site.py b/web/utils/site.py index 82c725998..611a428d2 100644 --- a/web/utils/site.py +++ b/web/utils/site.py @@ -1470,10 +1470,9 @@ location ^~ {from} {\n\ proxy_dir = "{}/{}".format(self.proxyPath, site_name) proxy_conf = proxy_dir + '/' + proxy_id + '.conf' 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) - if len(self.close_proxy) > 0: mw.restartWeb() self.close_proxy = []