{"id":258,"date":"2015-06-09T15:40:25","date_gmt":"2015-06-09T12:40:25","guid":{"rendered":"https:\/\/al1eren.wordpress.com\/?p=258"},"modified":"2022-07-22T20:13:07","modified_gmt":"2022-07-22T17:13:07","slug":"ubuntu-web-serverda-onbellek-kullanimi","status":"publish","type":"post","link":"http:\/\/www.erenali.com\/index.php\/2015\/06\/09\/ubuntu-web-serverda-onbellek-kullanimi\/","title":{"rendered":"UBUNTU WEB SERVERDA \u00d6NBELLEK KULLANIMI"},"content":{"rendered":"<div class=\"021ea2d8fe724ac454857d5c5e52edc2\" data-index=\"1\" style=\"float: left; margin: 10px 10px 10px 0;\">\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-3908223554810378\"\r\n     data-ad-slot=\"5522206140\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\r\n\n<\/div>\n<p>Sitenizin daha h\u0131zl\u0131 \u00e7al\u0131\u015fabilmesi i\u00e7in taray\u0131c\u0131lar\u0131n \u00f6nbellekleme \u00f6zellikleri kullan\u0131lmas\u0131 gerekebilir. Bunun \u00f6rne\u011fini ubuntu da kurulu sitemiz i\u00e7in a\u015fa\u011f\u0131daki gibi ger\u00e7ekle\u015ftirebiliriz.<\/p><div class=\"021ea2d8fe724ac454857d5c5e52edc2\" data-index=\"1\" style=\"float: left; margin: 10px 10px 10px 0;\">\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-3908223554810378\"\r\n     data-ad-slot=\"5522206140\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\r\n\n<\/div>\n\n<p>a2enmod expires<\/p>\n<p>a2enmod headers<\/p>\n<p>service apache2 restart<\/p>\n<p>komutlar\u0131yla ge\u00e7erlilik ve ba\u015fl\u0131k modlar\u0131 aktifle\u015ftirildi ve apache yeni \u00f6zellikleri i\u00e7in yeniden ba\u015flat\u0131ld\u0131.<\/p>\n<p>Daha sonra sitemizin k\u00f6k dizinin deki .htaccess dosyas\u0131n\u0131 y\u00f6netici yetkisiyle a\u00e7arak baz\u0131 de\u011fi\u015fiklikler yapmam\u0131z gerekmekte.<\/p>\n<p>A\u00e7t\u0131\u011f\u0131m\u0131z .htaccess dosyas\u0131n\u0131n en sonuna a\u015fa\u011f\u0131daki kodlar\u0131 ekleyerek dosyay\u0131 kaydedelim.<\/p>\n<pre>## Begin - ETag Optimization\n# This rule will create an ETag for files based only on the modification\n# timestamp and their size. \n# Note: It may cause problems on your server and you may need to remove it\nFileETag MTime Size\n# AddOutputFilterByType is now deprecated by Apache. Use mod_filter in the future.\nAddOutputFilterByType\n DEFLATE text\/plain text\/html text\/xml text\/css application\/xml \napplication\/xhtml+xml application\/rss+xml application\/javascript \napplication\/x-javascript\n# Enable expiration control\nExpiresActive On\n# Default expiration: 1 hour after request\nExpiresDefault \"now plus 1 hour\"\n# CSS and JS expiration: 1 week after request\nExpiresByType text\/css \"now plus 1 week\"\nExpiresByType application\/javascript \"now plus 1 week\"\nExpiresByType application\/x-javascript \"now plus 1 week\"\n\n# Image files expiration: 1 month after request\nExpiresByType image\/bmp \"now plus 1 month\"\nExpiresByType image\/gif \"now plus 1 month\"\nExpiresByType image\/jpeg \"now plus 1 month\"\nExpiresByType image\/jp2 \"now plus 1 month\"\nExpiresByType image\/pipeg \"now plus 1 month\"\nExpiresByType image\/png \"now plus 1 month\"\nExpiresByType image\/svg+xml \"now plus 1 month\"\nExpiresByType image\/tiff \"now plus 1 month\"\nExpiresByType image\/vnd.microsoft.icon \"now plus 1 month\"\nExpiresByType image\/x-icon \"now plus 1 month\"\nExpiresByType image\/ico \"now plus 1 month\"\nExpiresByType image\/icon \"now plus 1 month\"\nExpiresByType text\/ico \"now plus 1 month\"\nExpiresByType application\/ico \"now plus 1 month\"\nExpiresByType image\/vnd.wap.wbmp \"now plus 1 month\"\nExpiresByType application\/vnd.wap.wbxml \"now plus 1 month\"\n\nExpiresByType application\/smil \"now plus 1 month\"\n# Audio files expiration: 1 month after request\nExpiresByType audio\/basic \"now plus 1 month\"\nExpiresByType audio\/mid \"now plus 1 month\"\nExpiresByType audio\/midi \"now plus 1 month\"\nExpiresByType audio\/mpeg \"now plus 1 month\"\nExpiresByType audio\/x-aiff \"now plus 1 month\"\nExpiresByType audio\/x-mpegurl \"now plus 1 month\"\nExpiresByType audio\/x-pn-realaudio \"now plus 1 month\"\nExpiresByType audio\/x-wav \"now plus 1 month\"\n\n# Movie files expiration: 1 month after request\nExpiresByType application\/x-shockwave-flash \"now plus 1 month\"\nExpiresByType x-world\/x-vrml \"now plus 1 month\"\nExpiresByType video\/x-msvideo \"now plus 1 month\"\nExpiresByType video\/mpeg \"now plus 1 month\"\nExpiresByType video\/mp4 \"now plus 1 month\"\nExpiresByType video\/quicktime \"now plus 1 month\"\nExpiresByType video\/x-la-asf \"now plus 1 month\"\nExpiresByType video\/x-ms-asf \"now plus 1 month\"\n<\/pre>\n<p>e\u011fer bu i\u015flemlerden sonra sayfada bir hata olduysa .htaccess dosyas\u0131nda yapt\u0131\u011f\u0131n\u0131z de\u011fi\u015fiklikleri silerek a\u015fa\u011f\u0131daki kodlar\u0131 ekleyerek deneyebilirsiniz<\/p>\n<pre># Set the cache-control max-age\n# 1 year\n&lt;FilesMatch \".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$\"&gt;\nHeader set Cache-Control \"max-age=31449600, public\"\n&lt;\/FilesMatch&gt;\n# 2 DAYS\n&lt;FilesMatch \".(xml|txt)$\"&gt;\nHeader set Cache-Control \"max-age=172800, public, must-revalidate\"\n&lt;\/FilesMatch&gt;\n# 4 HOURS\n&lt;FilesMatch \".(html|htm)$\"&gt;\nHeader set Cache-Control \"max-age=14400, must-revalidate\"\n&lt;\/FilesMatch&gt;<\/pre>\n<div class=\"021ea2d8fe724ac454857d5c5e52edc2\" data-index=\"2\" style=\"float: none; margin:10px 0 10px 0; text-align:center;\">\n<script async src=\"\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block; text-align:center;\"\r\n     data-ad-layout=\"in-article\"\r\n     data-ad-format=\"fluid\"\r\n     data-ad-client=\"ca-pub-3908223554810378\"\r\n     data-ad-slot=\"5522206140\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\r\n\n<\/div>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>Sitenizin daha h\u0131zl\u0131 \u00e7al\u0131\u015fabilmesi i\u00e7in taray\u0131c\u0131lar\u0131n \u00f6nbellekleme \u00f6zellikleri kullan\u0131lmas\u0131 gerekebilir. Bunun \u00f6rne\u011fini ubuntu da kurulu sitemiz i\u00e7in a\u015fa\u011f\u0131daki gibi ger\u00e7ekle\u015ftirebiliriz. a2enmod expires a2enmod headers service apache2 restart komutlar\u0131yla ge\u00e7erlilik ve ba\u015fl\u0131k modlar\u0131 aktifle\u015ftirildi ve apache yeni \u00f6zellikleri i\u00e7in yeniden ba\u015flat\u0131ld\u0131. Daha sonra sitemizin k\u00f6k dizinin deki .htaccess dosyas\u0131n\u0131 y\u00f6netici yetkisiyle&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"http:\/\/www.erenali.com\/index.php\/2015\/06\/09\/ubuntu-web-serverda-onbellek-kullanimi\/\">Devam\u0131n\u0131 Oku<span class=\"screen-reader-text\">UBUNTU WEB SERVERDA \u00d6NBELLEK KULLANIMI<\/span> <i class=\"fas fa-angle-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[617,4,5],"tags":[16,23,32,33,47,57,30,116,124],"_links":{"self":[{"href":"http:\/\/www.erenali.com\/index.php\/wp-json\/wp\/v2\/posts\/258"}],"collection":[{"href":"http:\/\/www.erenali.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.erenali.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.erenali.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.erenali.com\/index.php\/wp-json\/wp\/v2\/comments?post=258"}],"version-history":[{"count":1,"href":"http:\/\/www.erenali.com\/index.php\/wp-json\/wp\/v2\/posts\/258\/revisions"}],"predecessor-version":[{"id":971,"href":"http:\/\/www.erenali.com\/index.php\/wp-json\/wp\/v2\/posts\/258\/revisions\/971"}],"wp:attachment":[{"href":"http:\/\/www.erenali.com\/index.php\/wp-json\/wp\/v2\/media?parent=258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.erenali.com\/index.php\/wp-json\/wp\/v2\/categories?post=258"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.erenali.com\/index.php\/wp-json\/wp\/v2\/tags?post=258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}