Gzip is any of several software applications used for file compression and decompression. The term usually refers to the GNU Project's implementation, "gzip" standing for GNU zip. It is based on the DEFLATE algorithm, which is a combination of Lempel-Ziv (LZ77) and Huffman coding.

learn more… | top users | synonyms

3
votes
1answer
63 views

Cannot extract .tar.gz archive in bash

I am in my /w dir and I saved the .tar.gz archive from the MediaWiki server like this: $ cd /public_html/w $ wget releases.wikimedia.org/mediawiki/1.24/mediawiki-1.24.1.tar.gz But once I try to ...
2
votes
3answers
45 views

How to serve giziped text files with nginx

To save space we gzip all our logs and text files and these files are browsed by the user, but these files are downloaded instead of opened in the browser, I couldn't find a way to set mime-type ...
0
votes
0answers
79 views

Apache Gzip not compressing js files

I have enabled Gzip compression via adding the below to my .htaccess file: <ifModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ ...
1
vote
0answers
72 views

apache deflate module not working

it's very strage, i google a problem with no luck at all. i have 2 servers (centos6, apache2.2). apache configuration is totally the same (i sure, apache configured by puppet) my deflate.conf: ...
1
vote
1answer
197 views

JBOSS : http gzip compression not working for application/x-www-form-urlencoded [closed]

Connector settings: <Connector URIencode="UTF-8" protocol="HTTP/1.1" port="8080" address="${jboss.bind.address}" ...
0
votes
1answer
98 views

server using too much cpu with nginx and gzip enabled

I have magento website on dedicated server. I decided to use gzip to save ban-with for magento websites and wanted to load them faster. But now server is using %250 more cpu if I click on a category ...
1
vote
1answer
34 views

BASH: bz2 to gzip conversion with find

I would like to convert a muliply bzip2 files to gzip format. I achived this with foor loop but I would like to do the same with find: BASH for loop: for i in $(ls -1 *.bz2); do echo "Converting: $i ...
-2
votes
3answers
198 views

How to set apache 2.2 gzip compression level?

I am running Debian and Apache/2.2.22 I have gzip enabled, and I would like to know, what is my compression level and how to change it. I know this can be achieved editing php.ini, but I would like to ...
1
vote
4answers
344 views

Logrotate appends “1” at the end of compressed file

I have a script which runs as a cronjob every 30 mins and takes mysqldump of some tables. The dump files are stored in /var/log/ as ...
0
votes
0answers
110 views

YSLow says certain CSS are not gzipped

YSlow keeps on telling me files like http://www.example.com/wp-content/plugins/q-and-a/css/q-a-plus.css?ver=1.0.6.2 are not gzipped while the gzip test tool at Feed the Bot mentions I am all good: ...
0
votes
1answer
106 views

Piping stream into tar on FreeBSD

I am trying to pipe a tar/gzip archive into tar to decompress it. The script I have is part of a self extracting installer, where my archive is appended to the script. This works fine on linux, and ...
0
votes
1answer
424 views

Unable to Unzip a tar.gz.bz2

We run daily backups of our MySQL server. Using the following script: [ ! -d "${DEST}" ] && mkdir -p "${DEST}" FILE=${DEST}/mysql-live.${NOW}-$(date +"%T").tar.gz.bz2 # get around error ...
2
votes
3answers
604 views

How to split a file and compress directly?

I've a 100GB file and I want to split into 100 of 1GB file each (by line break) e.g. split --bytes=1024M /path/to/input /path/to/output For the 100 files generated, I want to apply gzip/zip to ...
-2
votes
1answer
204 views

Resume a tar command that was stopped

I am trying to tar a huge directory (with about 600GB) and sometimes my SSH conection drops and I need to execute the tar code again and my linux overwites the previous file beginning all the tar ...
0
votes
1answer
897 views

dd command piped over gzip and ssh faster and faster as dd progresses

I am running the following command to copy a LVM from one host to another: dd if=/dev/vg_1/lv1 conv=noerror,sync bs=4M | gzip | ssh user@ip 'gzip -d | dd of=/dev/vg_2/lv1 bs=4M' To begin with I was ...
0
votes
1answer
580 views

How to ideally store images on Amazon S3

I want to store a huge number of images on Amazon S3 (served via Cloudfront). Currently the way I am doing is simply dumping the images and having basic HTTP Cache headers set to a month so that users ...
1
vote
2answers
73 views

Rolling log file without losing any log event

I have an 8GB file called php.log with a running php script logging into it. It is important for me that I log every event, and I want to compress it and empty the current file without stopping the ...
0
votes
1answer
150 views

Linux cp with gzip and numbered backup in one step?

I'm wanting to copy a file and gzip it in a single command/step But I want to do numbered backup if the file already exists i.e. "cp --backup=numbered" or similar. The reason for the single step is ...
2
votes
2answers
1k views

nginx gzip_static: why are the non-compressed files required?

I'm working with nginx 1.4.4 running on Ubuntu 12.04.4. nginx is reverse-proxing a cluster of Rails application servers. Static files (mostly assets) are served directly, without hitting the ...
0
votes
0answers
250 views

Enable ZIP compression of mails in Dovecot

Can you tell me how to enable ZIP compression of mails in Dovecot? I use mdbox as storage and enabled the zlib plugin by adding a 90-zlib.conf to /etc/dovecot/conf.d/ with the content plugin { ...
0
votes
0answers
82 views

GZIP compression for merged and specific files

My Website is using a CMS (Typo3) that has the feature to merge and compress all JavaScript and CSS Files. With htaccess i also enable the server side gzip feature which will work fine. But it seems ...
0
votes
1answer
33 views

Files sometimes fail to be retrieved from apache server

So, I'm not sure what the problem here is but I suspect it might be the server. So here's some key details Amazon EC2 servers (All in the same region and zone) Ubuntu 12.04 server Apache2 with gzip ...
0
votes
1answer
436 views

IIS 7.5 inconsistently Gzips files (with PHP & ASP.NET)

I made some changes to the web.config of a server running IIS 7.5 improve the performance (mostly front-end). A 3rd party testing tool says the site is running "PHP/5.3.10, ASP.NET" and if memory ...
0
votes
1answer
395 views

nginx cache gzip file's to temp directory?

Is the following possible through Nginx: I now have gzip on; but the server needs to compress the popular files everytime, the files are xml files created through a database, but they are "static". ...
0
votes
1answer
362 views

Apache / Nginx / Varnish - GZIP does not work on css, js

My current setup is as following: Apache -> Nginx -> Varnish running on Ubuntu apache2.conf: h**p://pastebin.com/A3wehAbe .htaccess: h**p://pastebin.com/Yre4hdSy (edited to allow deflate) ...
0
votes
0answers
118 views

Enable gzip for source maps

I'm using the Grunt plugins to concat, minify and generate source maps of my Javascript before I push it to the production server (I'll soon be doing the same with SASS for CSS). The source maps ...
0
votes
0answers
25 views

nginx: access_log both compressed and uncompressed

In my "vhost" declaration I have: access_log /WEBSITE_DIR/logs/access.log.gz combined gzip; Problem is I get 2 files, an access.log.gz and an access.log Why? I want just the .log.gz one..
0
votes
1answer
680 views

find directories in the current directory, older than 5 days and archive them

This is basic questions. I need to find folders in the current working directory(not recursively) and if they are older than 5 days archive them. zip or tar.gz is fine. I can find the folders with ...
0
votes
1answer
1k views

Compress with Gzip or Deflate my CSS & JS files [closed]

i ve a fashion website & using wordpress. I want to Compress or Gzip or Deflate my CSS & JS files. i have tried many codes with .htaccess to compress but not working. Would any body help me ...
7
votes
5answers
426 views

Grep-ing gzipped files [duplicate]

I have a set of 100 log files, compressed using gzip. I need to find all lines matching a given expression. I'd use grep, but of course, that's a bit of a nightmare because I'll have to unzip all ...
12
votes
3answers
966 views

I accidently zipped my whole server

Alright if anyone wants to play god and work miracles i'm down. So, i was given the task of making a script that found files that are older than 6 months, zipped them and then deleted them. On my way ...
0
votes
1answer
259 views

Tomcat6 Decompressing GZip Request

Since Tomcat has the option to compress its response to GZip. Is there a way to configure Tomcat 6 to decompress gzipped requests without putting it behind an Apache server with mod_deflate enabled, ...
1
vote
1answer
395 views

How to set gzip_static and gzip_proxied in nginx

nginx is in front of an application server and functions as the reverse proxy as well as the file server. There are two types of responses from the application server: JSON messages and ...
0
votes
1answer
78 views

gzip compression with nginx - Not being reported correctly in tests?

nginx 1.4.2 Google Pagespeed Insights (web version) is reporting that I should compress a number of .js files on my site. I've checked the mime.types config file and it includes the default ...
0
votes
1answer
1k views

Forcing Nginx to send Content-Length headers when serving static files with gzip

We're running Nginx 0.7.65[-1ubuntu2.3]. I've just noticed that when serving local static files using an alias directive and gzip on, the Content-Length header is not getting sent. Since it's serving ...
1
vote
1answer
165 views

Shell script error on filename with spaces

I have a bash script that search for every static file located under my server root and stores a gzipped version next to each file. I got it from ...
2
votes
0answers
111 views

Compress all apache log files which don't have any symlink pointing to them

I'm using cronolog to let the apache log files rotate. I'm using fail2ban to monitor those log files and ban in case of abuse. There's always an access.log symlink which is created by cronolog and ...
0
votes
0answers
140 views

GZip compression won't enable - Works fine on one site but not another

So this is a bit of a weird one... I've had a site hosted on my server for quite a while which has GZip compression enabled in Apache, using htaccess. I recently made a new site on the same server, ...
1
vote
2answers
293 views

Should I compress resources with a loadbalancer (Nginx) or with a web server (IIS7)?

I have the following setup: Nginx (1.1.19) on the front as a reverse proxy / loadbalancer IIS7 at the back as web servers MySQL as a database I am trying to figure out whether to compress static ...
1
vote
1answer
272 views

Glassfish - Font file and stylesheets and gzip

We used to use Tomcat but are migrating to Glassfish 4 for our application server. We are trying to enable compression, but for some reason, when we do, woff and ttf files are aborted. No errors, ...
0
votes
1answer
429 views

Nginx x-accel stripping Content-Encoding header

I have my Nginx server setup allow requests to be served with the X-Accel-Redirect header. This works fine for images, but I'm trying to get it to work for Javascript files that are already gzip'ed on ...
0
votes
1answer
155 views

mod_deflate is working but send wrong headers

I'm using mod_deflate to server gzip content for js and css files. Using curl I can see that it works and I can see the code but Chrome still thinks it's gzip content and NOT stylesheets/javascript ...
3
votes
3answers
1k views

Why is gzip compression varying in efficiency in IIS?

While running Fiddler, I noticed something odd in a request for a static ~5MB XML file to my server: Despite sending byte-for-byte identical headers (Edit: Including the headers), the responses were ...
0
votes
1answer
642 views

Apache gzip compression

I have an inherited Apache 2.2.17 server running on Ubuntu that I need to enable compression on. I have ensured the mod is loaded: apachectl -t -D DUMP_MODULES Loaded Modules: ... deflate_module ...
1
vote
2answers
121 views

How to enable gzip for files not on your server?

I'm running a gtmetrix.com report against my site. I get an F(41) for gzip compression. I don't own the two problem files mentioned for this penality. One file is a CSS on Mailchimp's server. Another ...
1
vote
2answers
2k views

nginx gzip enabled but not not gzipping

I have gzip enabled on nginx 1.2.8, but for some reason, it is not gzipping anything. Nginx install info: nginx version: nginx/1.2.8 built by gcc 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1) TLS SNI ...
0
votes
2answers
1k views

Gzip compression with nginx

In my nginx.conf I have: gzip on; gzip_static on; gzip_buffers 16 8k; gzip_comp_level 9; gzip_http_version 1.0; gzip_min_length 1000; gzip_types text/plain text/css ...
1
vote
1answer
150 views

How is Apache 1.3 compressing?

More specifically, I would like suggestions as to how my server is encoding in gzip compressed format. We have once OC4J container that serves gzip transfer encoding, and others do not. Trying to ...
2
votes
1answer
129 views

Nginx and HttpGzipStaticModule

I have an nginx instance built with the gzip_static module nginx version: nginx/1.2.6 built by gcc 3.4.6 20060404 (Red Hat 3.4.6-11) TLS SNI support disabled configure arguments: --prefix=/home/nginx ...
1
vote
0answers
97 views

nginx: how to serve files in gzip format when client accepts “Accept-Encoding: gzip” and inflated otherwise?

I have a folder full of .gz files and would like to serve them transparently inflated if requested by a client that does not send Accept-Encoding: gzip in the request and as-is (gzip'd) otherwise. I ...