diff --git a/usr/local/sbin/easyengine b/usr/local/sbin/easyengine index 3acaae42..bf2db2b6 100755 --- a/usr/local/sbin/easyengine +++ b/usr/local/sbin/easyengine @@ -119,8 +119,11 @@ COMMONNGINX() sed -i "s/worker_connections.*/worker_connections 1024;/" /etc/nginx/nginx.conf sed -i "s/worker_processes.*/worker_processes `cat /proc/cpuinfo | grep processor | wc -l`;/" /etc/nginx/nginx.conf - # Set Custome Headers And Logs And Variables like fastcgi_read_timeout client_max_body_size - sed -i "s/http {/http {\n\t### Easy Engine Settings\n\tadd_header X-Powered-By "EasyEngine";\n\tadd_header rt-Fastcgi-Cache \$upstream_cache_status;\n\n\tfastcgi_read_timeout 300;\n\tclient_max_body_size 100m;\n\n\tlog_format ee_cache '\$remote_addr - \$upstream_cache_status [\$time_local]'\n\t\t'\"\$request\" \$status \$body_bytes_sent'\n\t\t'\"\$http_referer\" \"\$http_user_agent\"';/" /etc/nginx/nginx.conf + # Set Custome Headers And Variables + sed -i "s/http {/http {\n\t##\n\t# Easy Engine Settings\n\t##\n\n\tadd_header X-Powered-By "EasyEngine";\n\tadd_header rt-Fastcgi-Cache \$upstream_cache_status;\n\n\tfastcgi_read_timeout 300;\n\tclient_max_body_size 100m;/" /etc/nginx/nginx.conf + + # Set Custome Logs + sed -i "s/error_log.*/error_log \/var\/log\/nginx\/error.log;\n\n\tlog_format rt_cache '\$remote_addr - \$upstream_cache_status [\$time_local]'\n\t\t'\"\$request\" \$status \$body_bytes_sent'\n\t\t'\"\$http_referer\" \"\$http_user_agent\"';/" /etc/nginx/nginx.conf # Check Directory Exist if [ ! -d /etc/nginx/conf.d ] diff --git a/usr/share/easyengine/nginx/wp/basic.conf b/usr/share/easyengine/nginx/wp/basic.conf index d3c6c7c0..a386e24d 100644 --- a/usr/share/easyengine/nginx/wp/basic.conf +++ b/usr/share/easyengine/nginx/wp/basic.conf @@ -3,7 +3,7 @@ server { server_name example.com www.example.com; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs; diff --git a/usr/share/easyengine/nginx/wp/w3tc.conf b/usr/share/easyengine/nginx/wp/w3tc.conf index 15e207e7..b59e21cd 100644 --- a/usr/share/easyengine/nginx/wp/w3tc.conf +++ b/usr/share/easyengine/nginx/wp/w3tc.conf @@ -3,7 +3,7 @@ server { server_name example.com www.example.com; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs; diff --git a/usr/share/easyengine/nginx/wp/wpfc.conf b/usr/share/easyengine/nginx/wp/wpfc.conf index 1b63f902..f253708a 100644 --- a/usr/share/easyengine/nginx/wp/wpfc.conf +++ b/usr/share/easyengine/nginx/wp/wpfc.conf @@ -3,7 +3,7 @@ server { server_name example.com www.example.com; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs; diff --git a/usr/share/easyengine/nginx/wp/wpsc.conf b/usr/share/easyengine/nginx/wp/wpsc.conf index b1a2f14d..38158e5d 100644 --- a/usr/share/easyengine/nginx/wp/wpsc.conf +++ b/usr/share/easyengine/nginx/wp/wpsc.conf @@ -3,7 +3,7 @@ server { server_name example.com www.example.com; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs; diff --git a/usr/share/easyengine/nginx/wpsubdir/basic.conf b/usr/share/easyengine/nginx/wpsubdir/basic.conf index a410d35a..ddf3ea95 100644 --- a/usr/share/easyengine/nginx/wpsubdir/basic.conf +++ b/usr/share/easyengine/nginx/wpsubdir/basic.conf @@ -9,7 +9,7 @@ server { # Uncomment The Following Line For Domain Mapping #server_name_in_redirect off; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs; diff --git a/usr/share/easyengine/nginx/wpsubdir/w3tc.conf b/usr/share/easyengine/nginx/wpsubdir/w3tc.conf index 8b657f33..5284d403 100644 --- a/usr/share/easyengine/nginx/wpsubdir/w3tc.conf +++ b/usr/share/easyengine/nginx/wpsubdir/w3tc.conf @@ -9,7 +9,7 @@ server { # Uncomment The Following Line For Domain Mapping #server_name_in_redirect off; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs; diff --git a/usr/share/easyengine/nginx/wpsubdir/wpfc.conf b/usr/share/easyengine/nginx/wpsubdir/wpfc.conf index d2ee0e78..b443df65 100644 --- a/usr/share/easyengine/nginx/wpsubdir/wpfc.conf +++ b/usr/share/easyengine/nginx/wpsubdir/wpfc.conf @@ -9,7 +9,7 @@ server { # Uncomment The Following Line For Domain Mapping #server_name_in_redirect off; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs; diff --git a/usr/share/easyengine/nginx/wpsubdir/wpsc.conf b/usr/share/easyengine/nginx/wpsubdir/wpsc.conf index bca4f2c7..19930495 100644 --- a/usr/share/easyengine/nginx/wpsubdir/wpsc.conf +++ b/usr/share/easyengine/nginx/wpsubdir/wpsc.conf @@ -9,7 +9,7 @@ server { # Uncomment The Following Line For Domain Mapping #server_name_in_redirect off; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs; diff --git a/usr/share/easyengine/nginx/wpsubdomain/basic.conf b/usr/share/easyengine/nginx/wpsubdomain/basic.conf index 2dabb9b9..f15dc822 100644 --- a/usr/share/easyengine/nginx/wpsubdomain/basic.conf +++ b/usr/share/easyengine/nginx/wpsubdomain/basic.conf @@ -9,7 +9,7 @@ server { # Uncomment The Following Line For Domain Mapping #server_name_in_redirect off; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs; diff --git a/usr/share/easyengine/nginx/wpsubdomain/w3tc.conf b/usr/share/easyengine/nginx/wpsubdomain/w3tc.conf index 86b4c945..ba8bed0e 100644 --- a/usr/share/easyengine/nginx/wpsubdomain/w3tc.conf +++ b/usr/share/easyengine/nginx/wpsubdomain/w3tc.conf @@ -9,7 +9,7 @@ server { # Uncomment The Following Line For Domain Mapping #server_name_in_redirect off; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs; diff --git a/usr/share/easyengine/nginx/wpsubdomain/wpfc.conf b/usr/share/easyengine/nginx/wpsubdomain/wpfc.conf index 0766a10a..64318c53 100644 --- a/usr/share/easyengine/nginx/wpsubdomain/wpfc.conf +++ b/usr/share/easyengine/nginx/wpsubdomain/wpfc.conf @@ -9,7 +9,7 @@ server { # Uncomment The Following Line For Domain Mapping #server_name_in_redirect off; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs; diff --git a/usr/share/easyengine/nginx/wpsubdomain/wpsc.conf b/usr/share/easyengine/nginx/wpsubdomain/wpsc.conf index 2564a1f8..0dc4e001 100644 --- a/usr/share/easyengine/nginx/wpsubdomain/wpsc.conf +++ b/usr/share/easyengine/nginx/wpsubdomain/wpsc.conf @@ -9,7 +9,7 @@ server { # Uncomment The Following Line For Domain Mapping #server_name_in_redirect off; - access_log /var/log/nginx/example.com.access.log ee_cache; + access_log /var/log/nginx/example.com.access.log rt_cache; error_log /var/log/nginx/example.com.error.log; root /var/www/example.com/htdocs;