|
|
@ -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: |
|
|
|