Join the community today
Register Now

Wordpress Whitelist file

Discussion in 'Blogs & CMS usage' started by Max, Feb 22, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    45,183
    10,276
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,926
    Local Time:
    8:03 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    you mean nothing or you mean missing code ?
     
  2. Max

    Max Member

    97
    5
    8
    Feb 17, 2018
    Ratings:
    +8
    Local Time:
    11:03 AM
    Hello

    missing code and not load in backend
     
  3. eva2000

    eva2000 Administrator Staff Member

    45,183
    10,276
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,926
    Local Time:
    8:03 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    hmm strange indeed if it works with precompressed file and not without, then it is most like related to gzip_buffers but you say it doesn't work with raised gzip_buffers.

    what's output for
    Code (Text):
    grep gzip_buffers /usr/local/nginx/conf/nginx.conf
    
     
  4. Max

    Max Member

    97
    5
    8
    Feb 17, 2018
    Ratings:
    +8
    Local Time:
    11:03 AM
    gzip_buffers 192 32k;
    ## gzip_buffers 1024 8k;
    ## gzip_buffers 32 8k;
     
  5. eva2000

    eva2000 Administrator Staff Member

    45,183
    10,276
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,926
    Local Time:
    8:03 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    ok lets try focusing on /usr/local/nginx/conf/staticfiles.conf tuning for js location match

    what if you modify the .js location match to add
    Code (Text):
        open_file_cache off;
        gzip_buffers     1024 8k;
        output_buffers   1 2m;
        sendfile off;
        sendfile_max_chunk 2m;
        aio threads;
    

    so it becomes
    Code (Text):
        location ~* \.(js)$ {
        open_file_cache off;
        gzip_buffers     1024 8k;
        output_buffers   1 2m;
        sendfile off;
        sendfile_max_chunk 2m;
        aio threads;
      #add_header Pragma public;
      #add_header X-Frame-Options SAMEORIGIN;
      #add_header X-Xss-Protection "1; mode=block" always;
      #add_header X-Content-Type-Options "nosniff" always;
      #add_header Referrer-Policy "strict-origin-when-cross-origin";
      add_header Access-Control-Allow-Origin *;
      add_header Cache-Control "public, must-revalidate, proxy-revalidate, immutable, stale-while-revalidate=86400, stale-if-error=604800";
            access_log off;
            expires 30d;
            break;
            }
    

    restart nginx service
    Code (Text):
    ngxrestart
    
     
  6. Max

    Max Member

    97
    5
    8
    Feb 17, 2018
    Ratings:
    +8
    Local Time:
    11:03 AM
    not work ,missing code ,not load
     
  7. eva2000

    eva2000 Administrator Staff Member

    45,183
    10,276
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,926
    Local Time:
    8:03 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    very weird so only 2 cases have worked
    1. uploading file to main hostname /usr/local/nginx/html/js directory to access via ip address - if that works then means it isn't gzip_buffers related as nginx.conf is server wide settings for gzip_buffers
    2. precompress with pigz the js file so nginx uses static gzip bypassing gzip_buffers and on the fly compression
     
  8. eva2000

    eva2000 Administrator Staff Member

    45,183
    10,276
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,926
    Local Time:
    8:03 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Do you currently have comet cache wp plugin disabled ? maybe related Troubleshooting Comet Cache | Comet Cacheā„¢

    this comment in particular might be relevant as your js file at 5.3 MB is huge
    would explain why accessing js via ip in non-wordpress install works and why precompressed js file works as the size is more manageable by Comet Cache HTML compressor

    oh another thing to test is in Comet Cache if there is an option to turn of compression, try that

    also do you have autoptimize wp plugin installed as that might conflict with Comet Cache too
     
  9. Max

    Max Member

    97
    5
    8
    Feb 17, 2018
    Ratings:
    +8
    Local Time:
    11:03 AM
    Yes only "static gzip bypassing gzip_buffer" works
     
  10. Max

    Max Member

    97
    5
    8
    Feb 17, 2018
    Ratings:
    +8
    Local Time:
    11:03 AM
    disabled YES

    No
     
  11. eva2000

    eva2000 Administrator Staff Member

    45,183
    10,276
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,926
    Local Time:
    8:03 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Until a solution is found for handling large js files 5.3+ MB in size, probably best way is for precompressed js file for your setup. And/or if the developer of that plugin could break up large js into a few smaller ones ?
     
  12. Max

    Max Member

    97
    5
    8
    Feb 17, 2018
    Ratings:
    +8
    Local Time:
    11:03 AM
    Ok :-(
    I should change the gzip_buffer again to old value?
    What is the best for wordpress APC Cache or Xcache cache

    regards
    Max
     
  13. eva2000

    eva2000 Administrator Staff Member

    45,183
    10,276
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,926
    Local Time:
    8:03 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Centmin Mod default's to using PHP Zend Opcache which is best and faster than APC /Xcache so no need to do anything Zend Opcache installed by default.

    Change it to the new defaults I just updated at Beta Branch - raise gzip_buffers default in nginx.conf
    Code (Text):
    gzip_buffers      1024 8k;
     
  14. Max

    Max Member

    97
    5
    8
    Feb 17, 2018
    Ratings:
    +8
    Local Time:
    11:03 AM
    but you say
    Code:
    You can compile Zend OPcache (Zend Optimizer Plus+) support
    as an alternative to using APC Cache or Xcache cache.
    But Zend OPcache only provides PHP opcode cache and
    DOESN'T do data caching, so if your web apps such as Wordpress,
    Drupal or vBulletin require data caching to APC or Xcache,
    it won't work with Zend OPcache.
    
     
  15. eva2000

    eva2000 Administrator Staff Member

    45,183
    10,276
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,926
    Local Time:
    8:03 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Yes Zend Opcache is for PHP opcode caching only for data caching if your web app supports it use Redis or Memcached server instead.
     
  16. Max

    Max Member

    97
    5
    8
    Feb 17, 2018
    Ratings:
    +8
    Local Time:
    11:03 AM
    Hello,
    Thanks for the great support, even if the solution is not satisfactory

    Thanks

    Regards
    Max