Update site.py

fix bugs
pull/710/head
jd82k 3 months ago committed by GitHub
parent 6ca80e3d8c
commit 1b0e42c79e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      web/utils/site.py

@ -1376,7 +1376,7 @@ class sites(object):
if _keep_path == 1:
_to = "{}$request_uri".format(to)
redirect_type = "301" if _type_code == 0 else "302"
redirect_type = "301" if _r_type == 0 else "302"
_if = "if ($host ~ '^{}')".format(site_from)
_return = "return {} {}; ".format(redirect_type, to)
file_content = _if + "{\r\n " + _return + "\r\n}"

Loading…
Cancel
Save