Questions tagged [gzip]

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.

Filter by
Sorted by
Tagged with
3 votes
3 answers
3k views

Corrupt Zip file when downloaded from Apache with Internet Explorer

I have a zip file being served by Apache with mod_gzip compression turned on. Everything is fine when the file is downloaded with Firefox. When downloaded with IE7 the zip file is corrupt. Any ...
0 votes
2 answers
615 views

nginx: gzip compression configured without error yet output is not compressed

After trying anything I could, the gzip compression in my nginx is still not working. environment: Ubuntu 11.04 with nginx ppa, with the latest release (1.0.8) PHP5-FPM backend from package with ...
1 vote
2 answers
4k views

nginx gzip did not work on php js and css processors

I have a assets manager for process css and js via php. i'm using nginx and php5-fpm for load my application. but returned css and js files not gziped. for example my url is http://mysite.com/...
1 vote
1 answer
460 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 http://wiki.linuxwall.info/doku.php/en:ressources:...
3 votes
2 answers
2k 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 ...
0 votes
1 answer
2k 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 ...
3 votes
4 answers
4k views

Getting HTTP Compression (GZip) to work with URL Routing on IIS 6

I haven't seen any questions specifically addressing this specific issue. When URL Routing is used, The Request goes into IIS and then is routed to the Aspx Page. For example, a site: www.site.com/...
0 votes
1 answer
382 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 ...
0 votes
1 answer
1k 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
1 answer
257 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 ...
1 vote
2 answers
2k 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 ...
2 votes
1 answer
399 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
0 answers
368 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 ...
2 votes
0 answers
328 views

Cherokee force gzip compression for HTTP/1.0

I am using CloudFront with a Cherokee origin server for static files. Cherokee serves gzipped content for direct browser requests without any problem. But when CloudFront requests content, Cherokee ...
0 votes
2 answers
14k views

Linux Find and Zip Files

I'm running into 2 problems when working with my logs and the find command. I am having problems with the mtime option. The 1st command below shows me a few files from March 5th till March 7th, like ...
1 vote
3 answers
5k views

PHP content-length header not specifying size for my forced download

I am trying to allow our users to be able to download a zip file using a php force download. I was having trouble getting the download to finish and it turned out the zip file was getting gzipped and ...
0 votes
1 answer
1k views

gzip_http_version set to 1.0 but sends 1.1

I am trying to set Amazon CloudFront up with Nginx using W3 Total Cache and WordPress multisite. CloudFront only works with http 1.0 so, I read that you need to change the http version in gzip to 1.0. ...
2 votes
0 answers
1k views

large javascript file not being served properly by nginx

I'm having trouble serving a large (376kb) javascript file via nginx over ssl with gzip enabled. The file is served without issue over plain old http. The file in question is ckeditor.js and is ...
1 vote
1 answer
2k views

find and delete files of a certain type inside a tar.gz file

Is there a way to not only find but also delete any .gz files inside a .tar.gz file? I found this link but I wouldn't know how to modify it to make it able to delete found files.
1 vote
6 answers
4k views

Nginx + Ubuntu 9.10, gzip not functioning

So I installed and configured Nginx 0.7.62 on a new Slicehost Ubuntu 9.10 slice. All seems to work fine with the server, except that gzip isn't working for one reason or another. I made sure that it'...
1 vote
3 answers
3k views

Help me enable gzip compression on nginx

Here's the gzip section from my current nginx.conf: gzip on; gzip_http_version 1.1; gzip_vary on; gzip_comp_level 6; gzip_proxied any; gzip_types text/plain text/html text/css application/json ...
4 votes
1 answer
7k views

Enabling HTTP Compression in WebSphere Application Server 7

I know the correct way of enabling gzip HTTP Compression for a WebSphere Application Server is to activate and configure the mod_gzip module in the IBM HTTP Server connected/installed in this ...
0 votes
1 answer
78 views

Getting gzip compression to work on my server (modules?)

I have copied the htaccess file from HTML5 Boilerplate into my httpd.conf file and restarted Apache, but for some reason, gzip compression is still not working: I have tested to see if the modules ...
0 votes
1 answer
929 views

Gzip encoded content from apache breaks safari

I have a very strange problem with my apache server (v2.2.16 running on debian 6.0.5). I have mod_deflate enabled to serve content gzipped, and in chrome, firefox and ie, it works just fine, no ...
0 votes
1 answer
685 views

Nginx check for HttpGzipModule

I have nginx+passenger on my vps but I think I don't have the HttpGzipModule installed, two questions: How to verifiy if it is installed? How to install it, have I to install nginx again? Is there a ...
6 votes
1 answer
12k views

Verify if the files can be unzipped successfully from 7Zip archive

We want to 7zip many database files (mysql, Oracle, and SQL Server dumps), various standard files (excel, word, etc), but we are afraid that once we 7Zip them and delete the originals it can happen ...
2 votes
1 answer
751 views

How to check if my VPS Apache hosting does GZIP on response?

I have DreamHost VPS hosting, the server is Apache. When I load my web-site in the browser, and inspect the HTTP reqests/responses in my browser's dev tools, I can see that my browser sends Accept-...
2 votes
2 answers
4k views

nginx configuring uwsgi and gzip buffers for different usage scenarios

I'm trying to configure two URL path groups for relatively different usage scenarios and resource consumption in nginx. Both are served by same uwsgi application. Group 1: Regular HTML pages up to ...
2 votes
1 answer
799 views

Gzip command to produce exact same output than tar -cvzf?

I did thought the following commands where equivalent, but they produce different checksums: tar -cvzf ... and tar -cvf ...; gzip ... does not produce the same output. sha1sumdiffers. What would be ...
2 votes
1 answer
2k views

enabling gzip with htaccess...why is it hit or miss?

I have shared hosting through Justhost. I use the HTML5 Boilerplate .htaccess (have tried other methods from here and there without luck) the compression part is as follows: <IfModule mod_deflate....
-1 votes
1 answer
140 views

Created a gz backup of a server and when I extract it I get a huge blank file

I gzipped a folder in an old server that included all of the sites served. That server does not exist anymore and I needed some info from the backup but when I extract the backup (a 26GB file) I only ...
2 votes
3 answers
9k views

Attempted gzip of directory applied gzip to each file individually

I tried to gzip a directory with the following command: gzip -r /home/path/to/backups/mydirectory.gz /home/site/public_html/ I was expecting to see a .gz file show up inside ...backups containing ...
5 votes
1 answer
7k views

Howto: create file with current date and time on linux

I have a cron job for creating a gzip file: mysqldump... | gzip -c > myfile..sql.gz I want myfile to be of the format "time_date.sql.gz" How do I create file with the current date and time? ...
5 votes
0 answers
778 views

Creating a seperate static content site for IIS7 and MVC

With reference to this serverfault blog post: A Few Speed Improvements where it talks about how static content for stackexchange is served from a separate cookieless domain... How would someone go ...
3 votes
3 answers
4k views

gzip not working for some files using nginx

Some files are not gzipped on their way to the user browser in our setup. for example http://myhostname.com/css/build/20120904-1.css http://myhostname.com/js/dojo/dn/main.js?20120904-1 http://...
22 votes
1 answer
41k views

How to limit nginx access log file size and compress?

I'm hoping to get some direction on how to set up truncating and gzip'ing on my domains' access logs. I notice that the core nginx access logs get split and compressed by default, yet my individual ...
0 votes
1 answer
64 views

Determine compression % of gzip file? [closed]

Is there an easy way to determine the compression % of a .gz file?
4 votes
1 answer
4k views

Enable gzip on Nginx

Yes, I know that there are a lot of other questions that seem exactly like this out there. I think I must've looked all of them. Twice. In desparation, I'm adding another in case my specific ...
0 votes
1 answer
99 views

What would be the outcome of tar and untar a constantly changing folder via ssh

I have used this command on a big-sized (TB),constant changing directory with sub-folders and files. $ tar c dir/* |gzip - | ssh user@host 'cd /dir/ && tar xz' What would be the outcome at ...
4 votes
3 answers
19k views

Combine two or more compressed files

I have 2 gz files those I need to merge into one -- that is to say I want to combine two .gz files into one such that when I extract the combined file I get a single file containing the concatenation ...
3 votes
1 answer
6k views

Nginx: disable gzip on images

In my nginx conf I have which enabled gzip: gzip on; gzip_proxied any; gzip_types text/plain text/css text/javascript; gzip_comp_level 9; gzip_vary on; However this also gzips my jpeg's which ...
0 votes
1 answer
4k views

How to disable Gzip compression by PHP script on FastCGI

We used this PHP code to disable gzip compression for specific scripts @apache_setenv('no-gzip', 1); But our admin migrated to FastCGI and this does not work anymore. How to do it? Thanks
2 votes
1 answer
883 views

Apache serving empty gzip with assets produced by Rails Asset Pipeline

I followed the steps described in the blogpost The Asset Pipeline, from development to production and tweaked them to my environment. The two important files are: /etc/apache/site-available/example....
0 votes
1 answer
976 views

How to unpack specific directory from /home backup packed with pigz+tar+gzip

Normally I'm extracting my copies with: pigz -dc backup2_week1_system.tar.gz | tar xzvf - Now I want to unpack specific directory from /home/user for example admin
13 votes
4 answers
17k views

rsync to compressed archive of file

I take backups of a server with rsync, but those backups are quite large, and I'd like to compress them. Is there a way to have some sort of wrapper around rsync to gunzip the file in the backup, ...
4 votes
3 answers
5k views

tar gzip slowing down server

I have a backup script that: compress some files generate md5 copy the compressed file to another server. the other server finishes comparing MD5 (to find copy errors). Here it's the core script: ...
0 votes
1 answer
169 views

Does PS3 browser handle gzipping? [closed]

Not sure if this would be a correct place to post, but here it goes. I've been getting reports form people who try accessing my site from a PS3, that every page appears like a jumble of random ...
3 votes
2 answers
2k views

Using AddEncoding x-gzip .gz without actual files

With Apache (2.2 and later) how can I achieve the following. I want to transparently compress using GZip encoding (not plain Deflate) the output when a certain file is queried with its name plus the ...
2 votes
3 answers
3k views

gzip compression good or bad?

I have a server that currently does a lot of processing in my application and the target users are those who have a very good internet connection. The output that is sent from the server is always ...
1 vote
1 answer
2k views

NGINX + GZIP - Altering Vary header to include User-Agent

Currently, when nginx is set to gzip outbound content as requested by the client, the "gzip_vary on" setting will set the following header: Vary: Accept-Encoding We would like to modify this to send ...

1
3 4
5
6 7