• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Enable gzip

kanense

Basic Pleskian
Hi,

How to can I verify if gzip is enable? And if not, how can I active/install mod deflate/gzip under plesk 12?

Thank you
 
I have added to htaccess rules of deflate but not work,

I have check at
Code:
/etc/nginx/nginx.conf

SOLVED: add to above file:
Code:
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js;
 
Last edited:
Hi, it sounds like you need to go learn your ABC's about running a web server.
nginx does not support htaccess. You need to decide if you're using nginx or apache to gzip for you.
 
hmm... maybe. the true as with the code inside htaccess:

Code:
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/javascript
<IfModule mod_setenvif.c>
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>

compression not work.

after add the code to nginx.conf
Code:
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js;

work ;)
 
hmm... maybe. the true as with the code inside htaccess:

Code:
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/javascript
<IfModule mod_setenvif.c>
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4\.0[678] no-gzip
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
</IfModule>

compression not work.
Yes, because it appears you have nginx serving your static content instead of apache. So you setting this for apache was a waste of time.

after add the code to nginx.conf
Code:
gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js;

work ;)
 
nginx is better at serving static content so I don't recommend making apache serve that content.
In case you want to activate apache anyways, you need to open the "Web Server Settings" for the site you want to have apache serve fully and uncheck "Smart Static Files Processing"
Reload apache.
 
Back
Top