How to enable gzip?
Posted: Sun Apr 19, 2015 6:27 pm
How to enable gzip?
I need runing MyBB.
I need runing MyBB.
Why do you think, gzip disabled?kudouyuzi wrote:How to enable gzip?
I need runing MyBB.
Code: Select all
# Compression
gzip on;
gzip_comp_level 9;
gzip_min_length 512;
gzip_disable "msie6";
gzip_buffers 8 64k;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml application/x-font-ttf font/opentype;
gzip_vary on;
gzip_proxied any;
but apache dont open gzipskurudo wrote:Why do you think, gzip disabled?kudouyuzi wrote:How to enable gzip?
I need runing MyBB.
/etc/nginx/nginx.confCode: Select all
# Compression gzip on; gzip_comp_level 9; gzip_min_length 512; gzip_disable "msie6"; gzip_buffers 8 64k; gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml application/x-font-ttf font/opentype; gzip_vary on; gzip_proxied any;
What error exactly do you get? When did you get this error?kudouyuzi wrote:but apache dont open gzip
cant display postsskurudo wrote:What error exatly do you get? When did you get this error?kudouyuzi wrote:but apache dont open gzip
Can you quote less? ;)kudouyuzi wrote:cant display posts
Code: Select all
a2enmod deflate
Code: Select all
Module deflate already enabled
Code: Select all
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file .(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
THXskurudo wrote:It's general steps, with no more information from you, hard to say what's going on on your server.
And, you know, PSI Corps forbid use telepathy over internet ;-)