Skip to content

Commit f12909f

Browse files
author
gau1991
committed
Merge branch 'master' into stable
2 parents 9a5d447 + febd2a3 commit f12909f

19 files changed

+139
-29
lines changed

CHANGELOG.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
v 3.1.3 - May 6, 2015
2+
- EasyEngine now fixes missing GPG keys automatically, fixes #470
3+
- Fixed Nginx hash bucket issue, fixes #449
4+
15
v 3.1.2 - April 29, 2015
26
- Updated PHP version from PHP 5.5 to PHP 5.6 #425
37
- Added ee stack upgrade command for stack upgrade #458

ee/cli/plugins/site.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from ee.cli.plugins.sitedb import *
1010
from ee.core.git import EEGit
1111
from subprocess import Popen
12+
from ee.core.nginxhashbucket import hashbucket
1213
import sys
1314
import os
1415
import glob
@@ -471,10 +472,20 @@ def default(self):
471472

472473
# Check rerequired packages are installed or not
473474
ee_auth = site_package_check(self, stype)
475+
476+
try:
477+
pre_run_checks(self)
478+
except SiteError as e:
479+
Log.debug(self, str(e))
480+
Log.error(self, "NGINX configuration check failed.")
481+
474482
try:
475483
try:
476484
# setup NGINX configuration, and webroot
477485
setupdomain(self, data)
486+
487+
# Fix Nginx Hashbucket size error
488+
hashbucket(self)
478489
except SiteError as e:
479490
# call cleanup actions on failure
480491
Log.info(self, Log.FAIL + "Oops Something went wrong !!")

ee/cli/templates/22222.mustache

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,24 @@ server {
1919
# Turn on directory listing
2020
autoindex on;
2121

22+
# HTTP Authentication on port 22222
23+
include common/acl.conf;
24+
2225
location / {
23-
include common/acl.conf;
2426
try_files $uri $uri/ /index.php?$args;
2527
}
2628

29+
# Display menu at location /fpm/status/
2730
location = /fpm/status/ {}
2831

2932
location ~ /fpm/status/(.*) {
33+
try_files $uri =404;
3034
include fastcgi_params;
3135
fastcgi_param SCRIPT_NAME /status;
3236
fastcgi_pass $1;
3337
}
3438

3539
location ~ \.php$ {
36-
include common/acl.conf;
3740
try_files $uri =404;
3841
include fastcgi_params;
3942
fastcgi_pass php;

ee/cli/templates/locations.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# NGINX CONFIGURATION FOR COMMON LOCATION
2-
# DO NOT MODIFY, ALL CHNAGES LOST AFTER UPDATE EasyEngine (ee)
2+
# DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee)
33
# Basic locations files
44
location = /favicon.ico {
55
access_log off;

ee/cli/templates/php-hhvm.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# PHP NGINX CONFIGURATION
2-
# DO NOT MODIFY, ALL CHNAGES LOST AFTER UPDATE EasyEngine (ee)
2+
# DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee)
33
location / {
44
try_files $uri $uri/ /index.php?$args;
55
}

ee/cli/templates/php.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# PHP NGINX CONFIGURATION
2-
# DO NOT MODIFY, ALL CHNAGES LOST AFTER UPDATE EasyEngine (ee)
2+
# DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee)
33
location / {
44
try_files $uri $uri/ /index.php?$args;
55
}

ee/cli/templates/w3tc-hhvm.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# W3TC NGINX CONFIGURATION
3-
# DO NOT MODIFY, ALL CHNAGES LOST AFTER UPDATE EasyEngine (ee)
3+
# DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee)
44
set $cache_uri $request_uri;
55
# POST requests and URL with a query string should always go to php
66
if ($request_method = POST) {

ee/cli/templates/w3tc.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
# W3TC NGINX CONFIGURATION
3-
# DO NOT MODIFY, ALL CHNAGES LOST AFTER UPDATE EasyEngine (ee)
3+
# DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee)
44
set $cache_uri $request_uri;
55
# POST requests and URL with a query string should always go to php
66
if ($request_method = POST) {

ee/cli/templates/wpcommon.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# WordPress COMMON SETTINGS
2-
# DO NOT MODIFY, ALL CHNAGES LOST AFTER UPDATE EasyEngine (ee)
2+
# DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee)
33
# Limit access to avoid brute force attack
44
location = /wp-login.php {
55
limit_req zone=one burst=1 nodelay;

ee/cli/templates/wpfc-hhvm.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# WPFC NGINX CONFIGURATION
2-
# DO NOT MODIFY, ALL CHNAGES LOST AFTER UPDATE EasyEngine (ee)
2+
# DO NOT MODIFY, ALL CHANGES LOST AFTER UPDATE EasyEngine (ee)
33
set $skip_cache 0;
44
# POST requests and URL with a query string should always go to php
55
if ($request_method = POST) {

0 commit comments

Comments
 (0)