{"id":852,"date":"2014-12-11T14:07:07","date_gmt":"2014-12-11T12:07:07","guid":{"rendered":"http:\/\/sahinsolmaz.com\/blog\/?p=852"},"modified":"2014-12-15T13:04:26","modified_gmt":"2014-12-15T11:04:26","slug":"gzipdeflate-sikistirma-kullanimi-nginx-apache-web-server-htaccess","status":"publish","type":"post","link":"https:\/\/sahinsolmaz.com\/blog\/gzipdeflate-sikistirma-kullanimi-nginx-apache-web-server-htaccess\/","title":{"rendered":"Gzip\/Deflate S\u0131k\u0131\u015ft\u0131rma Kullan\u0131m\u0131 NGINX &#038; APACHE Web Server .htaccess"},"content":{"rendered":"<p>Sunuculardaki performans\u0131n \u00f6neminden s\u00f6z etmeye hi\u00e7 gerek yok art\u0131k hepimiz bunun bilincindeyiz.<\/p>\n<p>Linux sunucularda Apache ve Nginx uzun s\u00fcredir epeyce pop\u00fcler durumda yak\u0131n gelecekte bu durum de\u011fi\u015fecek gibi g\u00f6r\u00fcnse de \u015fimdilik durum bundan ibaret.<br \/>\n<em>Bu arada merak edenler olabilir ben y\u00f6netimini yapt\u0131\u011f\u0131m t\u00fcm sunucularda Nginx kullanmaktay\u0131m.<\/em><\/p>\n<p>Apache kullanan sunuculardaki <strong>Apache S\u0131k\u0131\u015ft\u0131rma Mod\u00fcl\u00fc<\/strong>\u00a0<b>mod_deflate<\/b> iken Nginx kullanan sunuculardaki Nginx s\u0131k\u0131\u015ft\u0131rma mod\u00fcl\u00fc; <strong>HttpGzipModule<\/strong> &#8216;d\u0131r ve mod\u00fcller varsay\u0131lan olarak y\u00fckl\u00fc gelir yap\u0131land\u0131rma ayarlar\u0131na g\u00f6re bu durumlar de\u011fi\u015fiklik g\u00f6sterse de aktif durumda olmayabilir.<\/p>\n<p>Peki <em><strong>s\u0131k\u0131\u015ft\u0131rma nas\u0131l etkinle\u015ftirilir<\/strong><\/em>? ya da biraz daha teknik terimle soruyu yinelemek gerekirse <em><strong>Gzip\/Deflate Nas\u0131l Kullan\u0131l\u0131r?<\/strong><\/em><\/p>\n<h2>Gzip Nginx Kullananlar i\u00e7in \/\/For\u00a0Nginx\u00a0 Web Server<\/h2>\n<p><strong>NGINX SERVER WEB CONFIG<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-858\" src=\"http:\/\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2014\/12\/Nginx_How-To-Enable-HttpGzipModule-On-Nginx-To-Optimize-Page-Speed-480x295.png\" alt=\"Nginx_How To Enable HttpGzipModule On Nginx To Optimize Page Speed\" width=\"206\" height=\"94\" \/><\/p>\n<p style=\"padding-left: 30px;\"><strong>gzip<\/strong> &#8216;i etkilenti\u015ftirmek i\u00e7in \/\/for active\/enabled gzip<\/p>\n<h3>1.) \/etc\/nginx\/nginx.conf<\/h3>\n<blockquote>\n<pre><strong>gzip on;<\/strong>\r\n<strong>gzip_comp_level 2;<\/strong>\r\n<strong>gzip_http_version 1.0;<\/strong>\r\n<strong>gzip_proxied any;<\/strong>\r\n<strong>gzip_min_length 1100;<\/strong>\r\n<strong>gzip_buffers 16 8k;<\/strong>\r\n<strong>gzip_types text\/plain text\/css application\/x-javascript text\/xml application\/xml application\/xml+rss text\/javascript;<\/strong>\r\n\r\n<strong># Disable for IE &lt; 6 because there are some known problems<\/strong>\r\n<strong>gzip_disable \"MSIE [1-6].(?!.*SV1)\";<\/strong>\r\n\r\n<strong># Add a vary header for downstream proxies to avoid sending cached gzipped files to IE6<\/strong>\r\n<strong>gzip_vary on;\r\n\r\n<\/strong><\/pre>\n<\/blockquote>\n<p>2.) <strong>SSH<\/strong><\/p>\n<blockquote>\n<pre><strong># service nginx restart<\/strong><\/pre>\n<\/blockquote>\n<p>3.) <strong>.htaccess update HttpGzipModule<\/strong><\/p>\n<blockquote>\n<pre><strong>&lt;ifModule mod_gzip.c&gt;<\/strong>\r\n<strong>mod_gzip_on Yes<\/strong>\r\n<strong>mod_gzip_dechunk Yes<\/strong>\r\n<strong>mod_gzip_item_include file .(html?|txt|css|js|php|pl)$<\/strong>\r\n<strong>mod_gzip_item_include handler ^cgi-script$<\/strong>\r\n<strong>mod_gzip_item_include mime ^text\/.*<\/strong>\r\n<strong>mod_gzip_item_include mime ^application\/x-javascript.*<\/strong>\r\n<strong>mod_gzip_item_exclude mime ^image\/.*<\/strong>\r\n<strong>mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*<\/strong>\r\n<strong>&lt;\/ifModule&gt;<\/strong><\/pre>\n<\/blockquote>\n<h3>Apache kullananlar i\u00e7in;\u00a0Deflate \/\/FOR APACHE WEB SERVER\u00a0Deflate<\/h3>\n<p><strong>Apache mod_deflate Nas\u0131l A\u00e7\u0131l\u0131r\/Aktifle\u015ftirilir?<\/strong> \/\/ <strong>How to enable, Apache mod_deflate<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-857\" src=\"http:\/\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2014\/12\/apache_How-To-Enable-mod_deflate-On-Apache-To-Optimize-Page-Speed.jpg\" alt=\"apache_How To Enable mod_deflate On Apache To Optimize Page Speed\" width=\"150\" height=\"150\" srcset=\"https:\/\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2014\/12\/apache_How-To-Enable-mod_deflate-On-Apache-To-Optimize-Page-Speed.jpg 150w, https:\/\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2014\/12\/apache_How-To-Enable-mod_deflate-On-Apache-To-Optimize-Page-Speed-46x46.jpg 46w\" sizes=\"auto, (max-width: 150px) 100vw, 150px\" \/><\/p>\n<p>1.) <strong>\/etc\/httpd\/conf\/httpd.conf<\/strong><\/p>\n<p style=\"padding-left: 30px;\"><strong>LoadModule deflate_module modules\/mod_deflate.so<\/strong><\/p>\n<p>2.) <strong>SSH Reset Service<\/strong><\/p>\n<pre style=\"padding-left: 30px;\"># <strong>\/etc\/init.d\/httpd restart<\/strong>\r\nor\r\n# <strong>service httpd restart<\/strong><\/pre>\n<p>3.)\u00a0<strong>.htaccess update mod_deflate<\/strong><\/p>\n<blockquote>\n<pre><strong>&lt;IfModule mod_deflate.c&gt;\r\nAddOutputFilterByType DEFLATE text\/plain<\/strong>\r\n<strong>AddOutputFilterByType DEFLATE text\/html<\/strong>\r\n<strong>AddOutputFilterByType DEFLATE text\/xml<\/strong>\r\n<strong>AddOutputFilterByType DEFLATE text\/css<\/strong>\r\n<strong>AddOutputFilterByType DEFLATE application\/xml<\/strong>\r\n<strong>AddOutputFilterByType DEFLATE application\/xhtml+xml<\/strong>\r\n<strong>AddOutputFilterByType DEFLATE application\/rss+xml<\/strong>\r\n<strong>AddOutputFilterByType DEFLATE application\/javascript<\/strong>\r\n<strong>AddOutputFilterByType DEFLATE application\/x-javascript\r\n&lt;\/IfModule&gt;\r\n<\/strong><\/pre>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Sunuculardaki performans\u0131n \u00f6neminden s\u00f6z etmeye hi\u00e7 gerek yok art\u0131k hepimiz bunun bilincindeyiz. Linux sunucularda Apache ve Nginx uzun s\u00fcredir epeyce pop\u00fcler durumda yak\u0131n gelecekte bu durum de\u011fi\u015fecek gibi g\u00f6r\u00fcnse de \u015fimdilik durum bundan ibaret. Bu arada merak edenler olabilir ben y\u00f6netimini yapt\u0131\u011f\u0131m t\u00fcm sunucularda Nginx kullanmaktay\u0131m. Apache kullanan sunuculardaki Apache S\u0131k\u0131\u015ft\u0131rma Mod\u00fcl\u00fc\u00a0mod_deflate iken Nginx kullanan [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":855,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[154,113,462,461,199,43],"tags":[465,558,464,463,469,467,466,54,468],"class_list":["post-852","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-apache","category-centos","category-nginx-sunucu","category-performans","category-php-sunucu","category-sunucu","tag-htaccess","tag-apache","tag-deflate","tag-gzip","tag-how-to-enable","tag-httpgzipmodule","tag-mod_deflate","tag-nginx","tag-sikistirma"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2014\/12\/GzipDeflate-S\u0131k\u0131\u015ft\u0131rma-Kullan\u0131m\u0131-NGINX-APACHE-Web-Server-.htaccess_mod_deflate_httpGzipModule_How_To_enabled.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4sbm9-dK","jetpack-related-posts":[{"id":349,"url":"https:\/\/sahinsolmaz.com\/blog\/fastcgi-centos-5-6-timeout-500-internal-504-gateway-error-solved-cozumu\/","url_meta":{"origin":852,"position":0},"title":"FastCGI CentOS 5-6 Timeout 500 Internal &#038; 504 Gateway Error Solved \u2013 C\u00f6z\u00fcm\u00fc","author":"SahinSOLMAZ","date":"11 Mart 2014","format":false,"excerpt":"Merhaba Arkada\u015flar, Bu sayfay\u0131 okuyorsan\u0131z muhtemelen\u00a0500 internal server error\u00a0ve\/ya\u00a0504 gateway time-out nginx\u00a0problemi can\u0131n\u0131z\u0131 epeyce s\u0131km\u0131\u015f demektir. \u015eimdi bunlara biraz g\u00f6z atal\u0131m: Solved \u2013 NGINX 502 Bad Gateway Error Hatas\u0131 ve \u00c7\u00f6z\u00fcm\u00fc 500 Internal Server Error Hatas\u0131n\u0131n Ba\u015fl\u0131ca Sebepleri Bu hatan\u0131n birden fazla sebebi vard\u0131r s\u0131k kar\u015f\u0131la\u015f\u0131lanlar\u0131 ise: .htaccess:\u00a0sitenizde kurulu olan\u2026","rel":"","context":"&quot;Bug&quot; i\u00e7inde","block_context":{"text":"Bug","link":"https:\/\/sahinsolmaz.com\/blog\/category\/bug\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":334,"url":"https:\/\/sahinsolmaz.com\/blog\/prestashop-admin-nginx-502-bad-gateway-solved-hatasi-ve-cozumu\/","url_meta":{"origin":852,"position":1},"title":"Prestashop Admin Nginx (502 Bad Gateway) Solved Hatas\u0131 ve \u00c7\u00f6z\u00fcm\u00fc","author":"SahinSOLMAZ","date":"11 Mart 2014","format":false,"excerpt":"\u00a0G\u00fcncel \u00e7\u00f6z\u00fcm i\u00e7in: http:\/\/sahinsolmaz.com\/blog\/solved-nginx-502-bad-gateway-error-hatasi-ve-cozumu\/ New solve: http:\/\/sahinsolmaz.com\/blog\/solved-nginx-502-bad-gateway-error-hatasi-ve-cozumu\/ \u00a0 Merhaba Arkada\u015flar, Prestashop y\u00f6netim paneline giri\u015f yapmay\u0131 denerken bir g\u00fcn \u015f\u00f6yle bir hata ile kar\u015f\u0131\u015fa\u015f\u0131rsan\u0131z,\u00a0Prestashop Admin Nginx (502 Bad Gataway)\u00a0a\u015fa\u011f\u0131da anlataca\u011f\u0131m basit \u00e7\u00f6z\u00fcm i\u015finize yarayacakt\u0131r. * Sunucu y\u00f6netim panelini (\u00f6rn: Plesk Panel \u2018i) a\u00e7\u0131n,* Ara\u00e7lar ve Se\u00e7eneler (Tools & Settings) sayfas\u0131n\u0131 a\u00e7\u0131n,\u2026","rel":"","context":"&quot;E-Ticaret&quot; i\u00e7inde","block_context":{"text":"E-Ticaret","link":"https:\/\/sahinsolmaz.com\/blog\/category\/e-ticaret\/"},"img":{"alt_text":"Prestashop-Admin-Nginx-502-Bad-Gateway-Solved-Hatasi-ve-C\u00f6zumu","src":"https:\/\/i0.wp.com\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2014\/03\/Prestashop-Admin-Nginx-502-Bad-Gateway-Solved-Hatasi-ve-C%C3%B6zumu-300x168.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":936,"url":"https:\/\/sahinsolmaz.com\/blog\/solved-nginx-502-bad-gateway-error-hatasi-ve-cozumu\/","url_meta":{"origin":852,"position":2},"title":"Solved &#8211; NGINX 502 Bad Gateway Error Hatas\u0131 ve \u00c7\u00f6z\u00fcm\u00fc","author":"SahinSOLMAZ","date":"3 Mart 2015","format":false,"excerpt":"Update\/G\u00fcncelleme: 02 Eyl\u00fcl 2015 02:50 Merhabalar, Bug\u00fcnk\u00fc payla\u015f\u0131m\u0131m NGINX 502 Bad Gateway (Error) Hatas\u0131 \u00fczerine i\u015fe yarar bir \u00e7\u00f6z\u00fcm olacak: H\u0131zla b\u00fcy\u00fcmekte olan (a\u00e7\u0131k kaynak altyap\u0131l\u0131) Nginx, art\u0131k sekt\u00f6rdeki yerini \u00e7oktan alm\u0131\u015f ve daha da h\u0131zl\u0131 bir \u015fekilde b\u00fcy\u00fcmeye devam ediyor, \u00f6yle ki 2015 y\u0131l\u0131 ba\u015flang\u0131c\u0131nda 10 Milyon dolar destek\u2026","rel":"","context":"&quot;Genel&quot; i\u00e7inde","block_context":{"text":"Genel","link":"https:\/\/sahinsolmaz.com\/blog\/category\/genel\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2015\/03\/Solve-NGINX-502-Bad-Gateway-Error-Hatas%C4%B1-ve-%C3%87%C3%B6z%C3%BCm%C3%BC-2.jpg?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2015\/03\/Solve-NGINX-502-Bad-Gateway-Error-Hatas%C4%B1-ve-%C3%87%C3%B6z%C3%BCm%C3%BC-2.jpg?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2015\/03\/Solve-NGINX-502-Bad-Gateway-Error-Hatas%C4%B1-ve-%C3%87%C3%B6z%C3%BCm%C3%BC-2.jpg?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/sahinsolmaz.com\/blog\/wp-content\/uploads\/2015\/03\/Solve-NGINX-502-Bad-Gateway-Error-Hatas%C4%B1-ve-%C3%87%C3%B6z%C3%BCm%C3%BC-2.jpg?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":618,"url":"https:\/\/sahinsolmaz.com\/blog\/php-ioncube-nasil-guncellenir-ioncube-guncellestirme\/","url_meta":{"origin":852,"position":3},"title":"PHP &#8211; Ioncube Nas\u0131l G\u00fcncellenir? Ioncube G\u00fcncelle\u015ftirme","author":"SahinSOLMAZ","date":"2 Eyl\u00fcl 2014","format":false,"excerpt":"Merhabalar, Plesk\u00a0 kurulu sunucularda ioncube kurulu olarak gelmektedir. S\u00fcr\u00fcm\u00fcn y\u00fckseltilmesi talebi geldi\u011finde \u00f6ncelikle mevcut s\u00fcr\u00fcm\u00a0php -v\u00a0ile incelenir; - php -v -PHP 5.3.3 (cli) (built: Dec 10 2013 22:12:52) Copyright \u00a9 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright \u00a9 1998-2010 Zend Technologies with the ionCube PHP Loader v4.2.2, Copyright \u00a9\u2026","rel":"","context":"&quot;Apache&quot; i\u00e7inde","block_context":{"text":"Apache","link":"https:\/\/sahinsolmaz.com\/blog\/category\/sunucu\/apache\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":982,"url":"https:\/\/sahinsolmaz.com\/blog\/solved-plesk-the-following-apache-modules-are-not-installed-on-the-destination-server-wsgi\/","url_meta":{"origin":852,"position":4},"title":"Solved &#8211; Plesk The following Apache modules are not installed on the destination server: wsgi.","author":"SahinSOLMAZ","date":"10 May\u0131s 2015","format":false,"excerpt":"Plesk 'te Migration Manager ile transfer i\u015flemi yapaca\u011f\u0131m s\u0131rada kar\u015f\u0131la\u015ft\u0131\u011f\u0131m basit bir hatan\u0131n \u00e7\u00f6z\u00fcm\u00fcn\u00fc sizlerle payla\u015fmak istedim. Hata\/Error: The following Apache modules are not installed on the destination server: wsgi. Sebep\/Cause: mod_wsgi Kurulu de\u011fil \/\u00a0Not installed mod_wsgi \u00c7\u00f6z\u00fcm\/Solution: [root@~]# rpm -qa | grep http httpd-2.2.15-30.el6.centos.x86_64 [root@~]# wget archive.apache.org\/dist\/httpd\/httpd-2.2.15.tar.gz [root@~]# tar\u2026","rel":"","context":"&quot;Apache&quot; i\u00e7inde","block_context":{"text":"Apache","link":"https:\/\/sahinsolmaz.com\/blog\/category\/sunucu\/apache\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":907,"url":"https:\/\/sahinsolmaz.com\/blog\/solvedcozuldu-prestashop-maximum-upload-file-error\/","url_meta":{"origin":852,"position":5},"title":"Solved\/\u00c7\u00f6z\u00fcld\u00fc &#8211; Prestashop maximum upload file Error","author":"SahinSOLMAZ","date":"3 Nisan 2015","format":false,"excerpt":"Prestashop The limit choosen is superior to the server's maximum upload file You need to improve the limit of your server. Ba\u015fl\u0131kta Prestashop yazsa da\u00a0 \"maximum upload file You need to improve the limit of your server.\"\u00a0 hatas\u0131 genel bir hata (hatay\u0131 veren sistem Prestashop) ve pratik bir \u00e7\u00f6z\u00fcm i\u00e7in;\u2026","rel":"","context":"&quot;PrestaShop&quot; i\u00e7inde","block_context":{"text":"PrestaShop","link":"https:\/\/sahinsolmaz.com\/blog\/category\/e-ticaret\/prestashop-e-ticaret\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/posts\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/comments?post=852"}],"version-history":[{"count":0,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/posts\/852\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/media\/855"}],"wp:attachment":[{"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/media?parent=852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/categories?post=852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sahinsolmaz.com\/blog\/wp-json\/wp\/v2\/tags?post=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}