Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 09:49:35

Author Topic: Bug in UTF8 for nginx  (Read 2773 times)

0 Members and 1 Guest are viewing this topic.

Offline djscooby

  • Valuable Member
  • *
  • Posts: 119
  • Karma: +0/-0
    • View Profile
Bug in UTF8 for nginx
« 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% /

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Bug in UTF8 for nginx
« Reply #1 on: 2015-06-08, 16:22:53 »
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:
Code: [Select]
    include koi-utf;
    charset utf-8;
    source_charset koi8-r;

to:
Code: [Select]
    #include koi-utf;
    #charset utf-8;
    #source_charset koi8-r;

The same way to /etc/nginx/nginx.conf
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

 


Top 10 Social Networking:    Facebook    Twitter    LinkedIn    Pinterest    Google Plus    Tumblr    Instagram    VK    Flickr    Vine

Page created in 0.053 seconds with 18 queries.

web stats analysis