Browse Source

fix issue

develop
Prabuddha Chakraborty 9 years ago
parent
commit
66a7d888b7
  1. 8
      ee/cli/plugins/site_functions.py

8
ee/cli/plugins/site_functions.py

@ -1295,11 +1295,9 @@ def httpsRedirect(self,ee_domain_name,redirect=True):
.format(ee_domain_name),
encoding='utf-8', mode='w')
sslconf.write("server {\n"
"\tlisten 80;\n"
"\tserver_name www.{0} {0};\n"
"\treturn 301 https://{0}$request_uri;\n"
"}\n"
.format(ee_domain_name))
"\tlisten 80;\n" +
"\tserver_name www.{0} {0};\n".format(ee_domain_name) +
"\treturn 301 https://{0}".format(ee_domain_name)+"$request_uri;\n}" )
sslconf.close()
# Nginx Configation into GIT
except IOError as e:

Loading…
Cancel
Save