MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: djscooby on 2015-06-08, 16:05:10
-
Hello MR
after latest update ( Kloxo-MR: 7.0.0.b-2015060501) nginx have problem with javascript files and also on some sites it gives error content decoding failed
The problem is inside /etc/nginx/nginx.conf @Line : 42
charset utf-8;
This is enabled by default .
ISSUE :
1)Injects some code inside javascript files on some wordpress sites and js fails
2)On some other wordpress sites with caching plugins enabled it shows content decoding failed and doesnt load .
If disabled all works fine.
A. Kloxo-MR: 7.0.0.b-2015060501
- Web: hiawatha-9.13.0-f.6.mr.el6.x86_64
- PHP: php54s-5.4.40-1.ius.el6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.6 (Final) x86_64
- Hostname: server2.sugarweb.gr
C. Services:
1. MySQL: MariaDB-server-10.0.19-1.el6.x86_64
2. PHP:
- Branch: php55u-5.5.25-1.ius.el6.x86_64
- Multiple:
* php53m-5.3.29-1.ius.el6
* php54m-5.4.40-1.ius.el6
* php55m-5.5.24-1.ius.el6
* php56m-5.6.8-1.ius.el6
3. Httpd: httpd-2.2.29-2.mr.el6.x86_64
- PHP Type: php-fpm_event
4. Lighttpd: --uninstalled--
5. Hiawatha: --unused--
6. Nginx: nginx-1.9.1-1.el6.ngx.x86_64
7. Cache: --uninstalled--
8. Dns: nsd-4.1.2-1.mr.el6.x86_64
9. Qmail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- with: courier-imap-toaster-4.1.2-1.3.18.mr.el6.x86_64
D. Memory:
total used free shared buffers cached
Mem: 20480 2477 18002 1103 0 1162
-/+ buffers/cache: 1314 19165
Swap: 1024 0 1024
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 80G 38G 43G 48% /
-
So, something trouble if setting charset to utf-8 for nginx.
Copy /opt/configs/nginx/etc/conf/nginx.conf to custom.nginx.conf and then change:
from:
include koi-utf;
charset utf-8;
source_charset koi8-r;
to:
#include koi-utf;
#charset utf-8;
#source_charset koi8-r;
The same way to /etc/nginx/nginx.conf