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.

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.

Gzip is based on the DEFLATE algorithm, which is a combination of LZ77 and Huffman coding. DEFLATE was intended as a replacement for LZW and other patent-encumbered data compression algorithms, which, at the time, limited the usability of compress and other popular archivers.

"Gzip" is often also used to refer to the gzip file format, which is:

  • a 10-byte header, containing a magic number, a version number and a time stamp
  • optional extra headers, such as the original file name
  • a body, containing a DEFLATE-compressed payload
  • an 8-byte footer, containing a CRC-32 checksum and the length of the original uncompressed data

source: wikipedia

325 questions
0
votes
3 answers

Ran Gzip command and broke my site, need help with reverse command

In trying to back up a website on an apache server this am I ran the following: gzip -r /var/www/httpd/vhosts/mysite.com/ mysite.gzip Trying to backup the path to the gzip file. Howvever, after completeion i go to the website url and get the apache…
Martin
  • 1
0
votes
1 answer

Apache mod_deflate enable?

I'm using the follow code in .htaccess. It works nicely in localhost, however in production server i'm having troubles with gzip compression. AddOutputFilterByType DEFLATE text/css text/html application/x-javascript application/javascript
Pedro Gil
  • 103
  • 1
  • 3
0
votes
4 answers

How to tar.gz *.php, *.txt, *.inc, *.js, *.css, *.php3 files?

I want to backup my server, but not bother with images /videos etc. how can i tar.gz all those types of files i want (basically text files)?
tarnoob
0
votes
6 answers

gzip to bmp images on the fly?

I havent decided on a technology yet but i wanted to ask. BMP images are large, i compressed a 3mb image to 50k. Browsers can decode gzip text, so would it be possible to gzip bmp on my server and have the user request mysite.com/images/test.bmp and…
user274
0
votes
5 answers

gunzip "No space left on device"

I have a gzipped file that Ubuntu reports is 2,119,952,848 bytes in size. When I try to gunzip on a mount with 12GB free space, I get the error "No space left on device". Here's where it gets really strange... the file is a compressed mysqldump so…
Eric J.
  • 752
  • 2
  • 14
  • 27
0
votes
1 answer

How to enable gzip?

I would like to enable GZIP throughout my whole website. What would be the best way to do it? Would it be through .htaccess? Any pointers on how to do this would be greatly appreciated.
George
0
votes
1 answer

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
Josef Sábl
  • 111
  • 1
  • 4
0
votes
2 answers

What are the command-line options for un-tarring a tar.gz file to a specific directory?

This is one of those things I don't quite do often enough to memorize. I thought it would be nice to have the answer here so I (and maybe others with as poor a memory as me) can star it. What command-line options to I use to un-tar a tar.gz file…
Daryl Spitzer
  • 2,946
  • 9
  • 33
  • 40
0
votes
1 answer

Does PS3 browser handle gzipping?

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 characters on a white background, sort of like echoing…
user11350
0
votes
2 answers

TAR command to extract a single file from a .tar.gz

Does anyone have a command syntax for extracting 1 file from a .tar.gz that also allows me to place the extracted file in a certain directory? I have Googled this and get too many variations with a lot of forum threads stating the syntax doesn't…
H. Ferrence
  • 523
  • 3
  • 10
  • 18
0
votes
2 answers

Nginx can't handle .br (Brotli) and .gz (GZip) file requests properly

I can't set up nginx 1.18 (Ubuntu 22.04 as a server env, Chrome 104 as a client) for dealing with .br or .gz files. My frontend code bundler (Parcel 2) has generated .br and .gz index.html files but when I'm trying to access…
Eddie R
  • 1
  • 2
0
votes
0 answers

Poor server performance with nginx gzip

I enabled gzip on my nginx reverse proxy which is hosted on EC2 free tier (so lightweight server). I noticed that my request latency increased by almost 2x (13+KB compressed to 4+KB). The only issue that I can think of is that the compression on the…
Stuart
  • 1
  • 1
0
votes
0 answers

NGINX not enabling GZIP for css even though it is in config

I have built a simple static site, that I am serving with nginx (from docker). Currently I am trying to implement some best-practices, including gzip. I have used some example config I found online, to set up my own config. Gzip is working for most…
0
votes
0 answers

Enabling Gzip Compression on IIS/applicationHost where websites exist on two drives

I have inherited a strange environment for a website. It is broken into various projects of which some are in the inetpub directory on the server's C drive and others in the same directory on D drive. All these "websites" are under the same entry in…
Ar77
  • 101
0
votes
3 answers

Apache: compressing as zip (not gzip)

I've configured apache 2.4 to compress content before it is delivered to the client, using mod_deflate and the clients header set to "Accept-Encoding: gzip". So this I got already working, producing a valid gzipped file: curl --header…
dr0i
  • 231
  • 1
  • 11
1 2 3
21
22