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

1
vote
1answer
55 views

gzip select directories into separate archives

How would I go about compressing a list of directories into separate archives? I have read solutions that just archive all the directories within a given dir, but there are some I want to skip. ...
0
votes
0answers
26 views

How to implement gzip compression in such a way that the files compressed path is stored as relative path rather than absolute path?

I am trying to implement gzip compression in my Application server machine but when it is served through the proxy(different machine) to the front end the css files are getting broken due to the mixed ...
1
vote
1answer
33 views

HTTP compression in Apache reverse proxy?

I have an App server where Apache httpd is installed which serves the requests. We have another Proxy machine which redirects the requests to this App Server httpd using proxy pass. When I apply gzip ...
0
votes
1answer
32 views

wget and pipe to tar in the background

I am trying to download a large file which is .tar.gz and (> 2GB) in size. The bash script also does lots of other things, so I want to kick off the download and then continue processing other ...
1
vote
1answer
26 views

turn off gzip encoding for site in varnish config

I am attempting to turn off the gzip encoding for a specific website which is backed by a load balancer in order for some developers to troubleshoot something. I have already adjusted the apache ...
1
vote
1answer
53 views

Safari does not decompress gzip content when Content-Encoding is gzip,gzip

Safari for OSX, iOS, and Windows is having issues decompressing Gzip content on my server after a recent server overhaul. I moved from 1 server with Apache and PHP5-FPM to 3 servers. A load balancer ...
0
votes
1answer
65 views

NGINX gzip_static not working

I have the following conf on nginx: location ~* ^/assets/ { add_header Access-Control-Allow-Headers content-type; add_header Access-Control-Allow-Origin *; add_header Cache-Control ...
1
vote
0answers
56 views

GZip compression not working on Tomcat7

I recently tried using gzip compression to improve web UI performance. I configured Tomcat Connector as below. compression="on" compressionMinSize="2048" noCompressionUserAgents="gozilla, traviata" ...
0
votes
1answer
32 views

Serving SVG as GZIP does not cache it in subsequent requests

OS: Ubuntu 14.04 Apache: 2.4.12 (using PPA) - mod_expires, mod_headers I am using GZIP for all SVG files. It works well with the following statement in a configuration file (not .htaccess) AddType ...
0
votes
1answer
70 views

Nginx not displaying CSS, PNG & SVG

I have been looking through the hundreds of questions about this for a couple of hours now, but I haven't been able to find a single one that's the exact same as mine. Up until a week ago, all sites ...
0
votes
0answers
48 views

How do I accomplish Drupal “double gzip” prevention in Nginx?

There is this section of the default .htaccess that Drupal ships with: # Serve correct content types, and prevent mod_deflate double gzip. RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1] ...
0
votes
0answers
42 views

AWS S3 content over VPN is not getting decompressed (gzip)

We have a client who is having difficulty viewing our content over their VPN. If they browse to the content it appears with all crazy characters. I think I have worked out its somthing to do with ...
0
votes
0answers
43 views

Nginx cache gziped results on reverse proxy

I have been trying to figure out how I could set my reverse proxy to cache gziped results. What I am trying to achieve is following: Client requests for JS/css -> Reverse proxy requests it from ...
-1
votes
1answer
134 views

Setting a custom value to the DeflateBufferSize results in 500 internal server error

I'm trying to reset the DeflateBufferSize directive like so in my .htaccess file: DeflateBufferSize 1024 SetOutputFilter DEFLATE But the result of each page is then 500 internal server error (this ...
3
votes
1answer
105 views

gzip_ratio not printing in nginx logs

I'm configuring the nginx access_log to output in JSON format to use with other tools. The data I want includes info about the compression. I have gzip on, but the only thing I'm getting for the ...
0
votes
0answers
49 views

How to enable deflate compression for files?.ht

I am hosting my website on Godaddy. How do I enable compression for CSS and JS files? To compress JS and CSS files I am placing the following snippet in the JavaScript directory: SetOutputFilter ...
3
votes
1answer
145 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
121 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
136 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
215 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
505 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}" ...
1
vote
1answer
142 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 ...
-1
votes
3answers
695 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
706 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
193 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
202 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
773 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 ...
3
votes
3answers
2k 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
397 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 ...
2
votes
1answer
2k 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
940 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
110 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
240 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
3k 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
1answer
46 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
895 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
553 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
649 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
194 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
42 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
2k 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
3k 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
477 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 ...
11
votes
3answers
1k 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
458 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
713 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
107 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
2k 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
257 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
171 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 ...