Browse Source

Improved logic of modification Nginx config

bugfixes
gau1991 10 years ago
parent
commit
93b2a565d5
  1. 2
      ee/core/nginxhashbucket.py

2
ee/core/nginxhashbucket.py

@ -49,7 +49,7 @@ def hashbucket(self):
else: else:
with open('/etc/nginx/conf.d/ee-nginx.conf', 'a') as conf: with open('/etc/nginx/conf.d/ee-nginx.conf', 'a') as conf:
conf.write("\tserver_names_hash_bucket_size {0};\n" conf.write("server_names_hash_bucket_size {0};\n"
.format(ngx_hash)) .format(ngx_hash))
else: else:
EEFileUtils.searchreplace(self, '/etc/nginx/nginx.conf', EEFileUtils.searchreplace(self, '/etc/nginx/nginx.conf',

Loading…
Cancel
Save