# gzip/deflate ohne Funktion

**URL:** <https://forum.shopware.com/t/gzip-deflate-ohne-funktion/20902>\
**Category:** Shopware 3.5\
**Tags:** administration\
**Created:** [22. Juni 2014 um 11:24 UTC](https://forum.shopware.com/t/gzip-deflate-ohne-funktion/20902 "2014-06-22T11:24:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zumopeds](https://avatars.discourse-cdn.com/v4/letter/z/839c29/32.png) [@zumopeds](https://forum.shopware.com/u/zumopeds)\
**Post date:** [22. Juni 2014 um 11:24 UTC](https://forum.shopware.com/t/gzip-deflate-ohne-funktion/20902/1 "2014-06-22T11:24:01Z")

</div>

Hallo, ich versuche verzweifelt gzip/deflate zum Laufen zu bekommen. Habe schon zig .htaccess Einträge die ich hier im Forum gefunden habe, eingefügt, doch jedes Mal bekomme ich beim Website-Test ob gzip aktiv ist ein “NEIN”. Laut php.info wird gzip, deflate akzeptiert und funktioniert auch. Ich habe zu testzwecken eine andere Software in einem Unterverzeichnis installiert, dort funktioniert gzip ohne Problem. Wo liegt mein Problem. Muss die Komprimierung irgendwo im Backend erst aktiviert werden? So sieht meine .htaccess aus: [code]  
RewriteEngine on

RewriteBase /

#Https config for the backend  
#RewriteCond %{HTTPS} !=on  
#RewriteRule backend/(.\*) https://%{HTTP\_HOST}%{REQUEST\_URI} [L,R=301]

RewriteRule shopware.dll shopware.php  
RewriteRule files/documents/.\* engine [NC,L]  
RewriteRule backend/media/(.\*) media/$1 [NC,L]

RewriteCond %{REQUEST\_URI} !(/(engine|files|templates)/)  
RewriteCond %{REQUEST\_URI} !(/media/(archive|banner|image|music|pdf|unknown|video)/)  
RewriteCond %{REQUEST\_FILENAME} !-f  
RewriteCond %{REQUEST\_FILENAME} !-d  
RewriteRule ^(.\*)$ shopware.php [PT,L,QSA]

# Fix missing authorization-header on fast\_cgi installations

RewriteRule .\* - [E=HTTP\_AUTHORIZATION:%{HTTP:Authorization},L]  
# Staging-Rules start #SetEnvIf Host “staging.test.shopware.in” ENV=staging DirectoryIndex index.html DirectoryIndex index.php DirectoryIndex shopware.php # Disables download of configuration  
Deny from all  
# Enable gzip compression  
AddOutputFilterByType DEFLATE text/html  
AddOutputFilterByType DEFLATE text/plain  
AddOutputFilterByType DEFLATE text/xml  
AddOutputFilterByType DEFLATE application/xhtml+xml  
AddOutputFilterByType DEFLATE text/css  
AddOutputFilterByType DEFLATE application/xml  
AddOutputFilterByType DEFLATE image/svg+xml  
AddOutputFilterByType DEFLATE application/rss+xml  
AddOutputFilterByType DEFLATE application/atom\_xml  
AddOutputFilterByType DEFLATE application/javascript  
AddOutputFilterByType DEFLATE application/x-javascript  
AddOutputFilterByType DEFLATE application/x-httpd-php  
AddOutputFilterByType DEFLATE application/x-httpd-fastphp  
BrowserMatch ^Mozilla/4 gzip-only-text/html  
BrowserMatch ^Mozilla/4.0[678] no-gzip  
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html  
  
  
ExpiresActive on  
ExpiresDefault “access plus 1 month”  
FileETag None  
  
Header append Cache-Control “public”  
Header unset ETag  
  
  
# Disables auto directory index  
Options -Indexes  
  
Options -MultiViews

# php\_value memory\_limit 128M

# php\_value max\_execution\_time 120

# php\_value upload\_max\_filesize 20M

php\_flag phar.readonly off  
php\_flag magic\_quotes\_gpc off  
php\_flag session.auto\_start off  
php\_flag suhosin.session.cryptua off  
php\_flag zend.ze1\_compatibility\_mode off  
# AddType x-mapp-php5 .php # AddHandler x-mapp-php5 .php [/code] Um folgendenWebshop geht es: [http://www.zweirad-union-mopeds.de](http://www.zweirad-union-mopeds.de) Bin über jeden Tip dankbar… GRuß

---

<div class="post-metadata">

**Author:** ![chemiebar](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@chemiebar](https://forum.shopware.com/u/chemiebar)\
**Post date:** [23. Dezember 2015 um 18:55 UTC](https://forum.shopware.com/t/gzip-deflate-ohne-funktion/20902/2 "2015-12-23T18:55:54Z")

</div>

Stehe gerade vor dem gleichen Problem: Alle Versuche deflate in der .htaccess zu aktivieren scheitern, deflate wird schlicht „ignoriert“. Mod\_deflate ist aber sicher vorhanden, da es bei der If-Routine erkannt wird: Wenn ich einen Fehler innerhalb der Routine eingebe, funktioniert die Seite nicht mehr, also wird in diesen Befehlszweig abgezweigt, nur dann eben nicht komprimiert. Auch ich habe schon zig verschiedene Einträge in der -htacess probiert, es ändert sich nichts. Weiss mittlerweile jemand eine Lösung?

---

<div class="post-metadata">

**Author:** ![chemiebar](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@chemiebar](https://forum.shopware.com/u/chemiebar)\
**Post date:** [23. Dezember 2015 um 19:37 UTC](https://forum.shopware.com/t/gzip-deflate-ohne-funktion/20902/3 "2015-12-23T19:37:38Z")

</div>

Jetzt hab ich die Ursache gefunden: Auf dem Server war nginx als Rerverse-Proxy-Service aktiviert. Lösung: nginx ausschalten und deflate wird in der .htacess richtig ausgeführt (pagespeed geht bei mir schlagartig von 56 Punkten auf 87!!! :-)))). Zum Ausschalten von ginx als root auf dem Server einloggen und folgenden Befehl eingeben: /usr/local/psa/admin/sbin/nginxmng -d Wenn man nginx wieder einschalten will: /usr/local/psa/admin/sbin/nginxmng -e Um den Status von nginx abzurufen: /usr/local/psa/admin/sbin/nginxmng -s
