De Help Desk punt NL
Kennisbank
De Helpdesk > De Helpdesk > Kennisbank

GZIP compressie met Mod_deflate in apache 2.x

Oplossing

Dit is de configuratie voor Centos, Fedora en Redhat.

De installatie is simpel, ga naar /etc/httpd/conf/

Voer uit:

cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak  

Nu hebben we een werkende backupfile van de apache config.

Voer nu uit:

 

vi /etc/httpd/conf/httpd.conf

En voeg de volgende regels toe:

#
# Deflate output configuration
#
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html

 

Opslaan en apache herstarten en testen of alles naar wens werkt.

Een snelle en goede test vinden we hier KLIK

 
Was dit artikel bruikbaar? ja / nee
Gerelateerde artikelen Serverinfo verbergen CentOS 7, Fedora 21, RedHat 7
Gzip compressie in Apache aanzetten
Apache start en stopt - ISPconfig op CentOS 7 - execstop, failure, vlogger
Apache: No space left on device: Couldn't create accept lock
Gzip compressie aanzetten in Joomla
Gzip compressie aanzetten in Wordpress
Website testen
ISPconfig website overzetten andere master server
SSL sertificaat installeren in ISPconfig
Nvidia settings kan config niet opslaan
Artikel details
Artikel ID: 223
Categorie: Apache
Zoekwoorden
Datum toegevoegd: 25-Feb-2015 15:33:09
Aantal bekeken: 550
Beoordeling (Stemmen): Artikel beoordeeld 3.7/5.0 (112)

 
« Ga terug