{"id":231,"date":"2025-11-12T07:45:40","date_gmt":"2025-11-12T07:45:40","guid":{"rendered":"https:\/\/adveyer.com\/blog\/?p=231"},"modified":"2025-11-12T07:45:40","modified_gmt":"2025-11-12T07:45:40","slug":"apache-icin-http-2-aktif-etmek","status":"publish","type":"post","link":"https:\/\/adveyer.com\/blog\/apache-icin-http-2-aktif-etmek\/","title":{"rendered":"Apache \u0130cin HTTP\/2 Aktif Etmek"},"content":{"rendered":"<p>Web performans\u0131 ve SEO a\u00e7\u0131s\u0131ndan g\u00fcn\u00fcm\u00fczde protokol katmanlar\u0131n\u0131n \u00f6nemi giderek art\u0131yor. \u00d6zellikle HTTP\/2, birden \u00e7ok iste\u011fi tek TCP ba\u011flant\u0131s\u0131 \u00fczerinden i\u015fleyebilme, ba\u015fl\u0131k s\u0131k\u0131\u015ft\u0131rma, \u00f6nceliklendirme gibi avantajlar\u0131yla HTTP\/1.1\u2019e g\u00f6re b\u00fcy\u00fck bir ilerleme sunuyor. (<a title=\"HTTP\/2 guide - Apache HTTP Server Version 2.4\" href=\"https:\/\/httpd.apache.org\/docs\/2.4\/howto\/http2.html?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Apache HTTP Server<\/a>)<br \/>\nE\u011fer Apache sunucunuz varsa ve sitelerinizin h\u0131z\u0131n\u0131 art\u0131rmak, kullan\u0131c\u0131 deneyimini iyile\u015ftirmek istiyorsan\u0131z HTTP\/2\u2019yi aktif etmek \u00e7ok do\u011fru bir ad\u0131m olur.<\/p>\n<h3>\u00d6n Ko\u015fullar<\/h3>\n<p>HTTP\/2 aktif etmeden \u00f6nce a\u015fa\u011f\u0131daki ko\u015fullar\u0131 sa\u011flad\u0131\u011f\u0131n\u0131zdan emin olun:<\/p>\n<ul>\n<li>Apache s\u00fcr\u00fcm\u00fc <strong>2.4.x<\/strong> olmal\u0131. (<a title=\"How to Configure HTTP\/2 on Apache | Linode Docs\" href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-configure-http-2-on-apache\/?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Akamai<\/a>)<\/li>\n<li>Sunucuda <strong>TLS\/SSL<\/strong> kurulmu\u015f olmal\u0131 (\u00e7o\u011fu taray\u0131c\u0131 HTTP\/2\u2019yi yaln\u0131zca HTTPS \u00fczerinden destekler) (<a title=\"How to Configure HTTP\/2 on Apache | Linode Docs\" href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-configure-http-2-on-apache\/?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Akamai<\/a>)<\/li>\n<li>Apache mod\u00fcl\u00fc <code>mod_http2<\/code> y\u00fcklenmi\u015f ve etkin olmal\u0131. (<a title=\"HTTP\/2 guide - Apache HTTP Server Version 2.4\" href=\"https:\/\/httpd.apache.org\/docs\/2.4\/howto\/http2.html?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Apache HTTP Server<\/a>)<\/li>\n<li>Apache\u2019nin MPM (Multi-Processing Module) olarak <strong>prefork<\/strong> yerine <strong>event<\/strong> veya <strong>worker<\/strong> kullan\u0131yor olmas\u0131 tercih edilir; prefork baz\u0131 HTTP\/2 \u00f6zellikleriyle uyumsuz olabilir. (<a title=\"Enable HTTP2 in Apache 2.4.53\" href=\"https:\/\/stackoverflow.com\/questions\/71875777\/enable-http2-in-apache-2-4-53?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Stack Overflow<\/a>)<\/li>\n<\/ul>\n<h3>Ad\u0131m Ad\u0131m Kurulum<\/h3>\n<h4>1. Mod\u00fcl\u00fc Y\u00fckleme \/ Etkinle\u015ftirme<\/h4>\n<p>Debian\/Ubuntu i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">sudo apt update\r\nsudo apt install apache2\r\nsudo a2enmod http2\r\nsudo a2enmod ssl\r\n<\/code><\/pre>\n<p>Red Hat \/ CentOS i\u00e7in (Yum\/DNF):<\/p>\n<pre><code class=\"language-bash\">sudo yum install mod_http2\r\n<\/code><\/pre>\n<p>Ard\u0131ndan Apache konfig\u00fcrasyon dosyas\u0131nda mod\u00fcl\u00fcn y\u00fcklendi\u011fini do\u011frula. (<a title=\"HTTP\/2 guide - Apache HTTP Server Version 2.4\" href=\"https:\/\/httpd.apache.org\/docs\/2.4\/howto\/http2.html?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Apache HTTP Server<\/a>)<\/p>\n<h4>2. MPM Ayarlar\u0131n\u0131 Kontrol Etme<\/h4>\n<p>Prefork mod\u00fcl\u00fcn\u00fcn etkin olup olmad\u0131\u011f\u0131n\u0131 kontrol edin:<\/p>\n<pre><code class=\"language-bash\">apachectl -M | grep mpm\r\n<\/code><\/pre>\n<p>E\u011fer <code>mpm_prefork_module<\/code> aktifse bu HTTP\/2 i\u00e7in ideal de\u011fil. Prefork\u2019\u0131 devre d\u0131\u015f\u0131 b\u0131rak\u0131p <code>mpm_event<\/code> veya <code>mpm_worker<\/code> moduna ge\u00e7melisiniz. (<a title=\"How to Enable HTTP\/2 in Apache 2.4 on Ubuntu 20.04\" href=\"https:\/\/gist.github.com\/GAS85\/38eb5954a27d64ae9ac17d01bfe9898c?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Gist<\/a>)<br \/>\n\u00d6rne\u011fin Ubuntu\u2019da:<\/p>\n<pre><code class=\"language-bash\">sudo a2dismod mpm_prefork\r\nsudo a2enmod mpm_event\r\nsudo systemctl restart apache2\r\n<\/code><\/pre>\n<h4>3. VirtualHost veya Global Konfig\u00fcrasyona <code>Protocols<\/code> Direktifi Ekleme<\/h4>\n<p>SSL kulland\u0131\u011f\u0131n\u0131z VirtualHost i\u00e7inde (\u00f6rne\u011fin <code>\/etc\/apache2\/sites-available\/example.com-ssl.conf<\/code>) \u015fu sat\u0131r\u0131 ekleyin:<\/p>\n<pre><code class=\"language-apache\">&lt;IfModule http2_module&gt;\r\n    Protocols h2 h2c http\/1.1\r\n&lt;\/IfModule&gt;\r\n<\/code><\/pre>\n<p>Buradaki <code>h2<\/code> = TLS \u00fczerinden HTTP\/2, <code>h2c<\/code> = \u015fifrelenmemi\u015f HTTP\/2 (\u00e7o\u011fu durumda kullan\u0131lmaz), <code>http\/1.1<\/code> = fallback. (<a title=\"How to Configure HTTP\/2 on Apache | Linode Docs\" href=\"https:\/\/www.linode.com\/docs\/guides\/how-to-configure-http-2-on-apache\/?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Akamai<\/a>)<br \/>\nE\u011fer t\u00fcm sitelere uygulamak istersen, global olarak <code>\/etc\/apache2\/conf-available\/http2.conf<\/code> dosyas\u0131nda da ayn\u0131 ayar\u0131 yapabilirsiniz. (<a title=\"How to Enable HTTP\/2 in Apache 2.4 on Ubuntu 20.04\" href=\"https:\/\/gist.github.com\/GAS85\/38eb5954a27d64ae9ac17d01bfe9898c?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Gist<\/a>)<\/p>\n<h4>4. Apache\u2019yi Yeniden Ba\u015flatma ve Test Etme<\/h4>\n<pre><code class=\"language-bash\">sudo apachectl configtest\r\nsudo systemctl restart apache2\r\n<\/code><\/pre>\n<p>Test i\u00e7in:<\/p>\n<pre><code class=\"language-bash\">curl -I --http2 https:\/\/yourdomain.com\r\n<\/code><\/pre>\n<p>Yan\u0131t\u0131n ba\u015flang\u0131c\u0131nda <code>HTTP\/2 200<\/code> gibi bir ifade g\u00f6rmelisiniz. (<a title=\"How to Enable HTTP\/2 on an Apache Web Server\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/enable-http-2-apache\/?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">InMotion Hosting<\/a>)<\/p>\n<p>Ayr\u0131ca taray\u0131c\u0131da Geli\u015ftirici Konsolu \u2192 Network sekmesinde \u201cProtocol\u201d s\u00fctununda \u201ch2\u201d yazd\u0131\u011f\u0131n\u0131 kontrol edin.<\/p>\n<h3>Ek Ayarlar &amp; Optimizasyon<\/h3>\n<ul>\n<li><strong>TLS s\u00fcr\u00fcmlerini<\/strong> TLS 1.2 \/ TLS 1.3 olarak s\u0131n\u0131rland\u0131r\u0131n, HTTP\/2 i\u00e7in g\u00fc\u00e7l\u00fc \u015fifreleme gerekir. (<a title=\"HTTP\/2 guide - Apache HTTP Server Version 2.4\" href=\"https:\/\/httpd.apache.org\/docs\/2.4\/howto\/http2.html?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Apache HTTP Server<\/a>)<\/li>\n<li><strong>H2 Push (Server Push)<\/strong> gibi \u00f6zellikleri aktif edebilirsiniz (\u00f6rne\u011fin <code>H2Push on<\/code> gibi) (<a title=\"How to Enable HTTP\/2 in Apache 2.4 on Ubuntu 20.04\" href=\"https:\/\/gist.github.com\/GAS85\/38eb5954a27d64ae9ac17d01bfe9898c?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">Gist<\/a>)<\/li>\n<li>CDN veya Proxy kullan\u0131yorsan\u0131z, onlar\u0131n da HTTP\/2 deste\u011fini ve ayarlar\u0131n\u0131 kontrol edin.<\/li>\n<li>Sunucu kaynaklar\u0131n\u0131 izleyin: HTTP\/2\u2019de ayn\u0131 TCP ba\u011flant\u0131s\u0131nda \u00e7oklu istek olaca\u011f\u0131 i\u00e7in MPM ve Limit ayarlar\u0131n\u0131 uygun yap\u0131land\u0131r\u0131n.<\/li>\n<\/ul>\n<h3>Kar\u015f\u0131la\u015f\u0131labilecek Sorunlar ve \u00c7\u00f6z\u00fcmler<\/h3>\n<ul>\n<li>Taray\u0131c\u0131da h\u00e2l\u00e2 <code>http\/1.1<\/code> g\u00f6r\u00fcn\u00fcyorsa: SSL sertifikas\u0131 yok veya ALPN deste\u011fi eksik.<\/li>\n<li>MPM prefork kullan\u0131l\u0131yorsa HTTP\/2 sa\u011flam \u00e7al\u0131\u015fmayabilir. Prefork yerine event mod\u00fcl\u00fcne ge\u00e7in.<\/li>\n<li>E\u011fer bir Reverse Proxy\/CDN var ise HTTP\/2 client-sunucu aras\u0131nda de\u011fil, CDN-sunucu aras\u0131nda bile aktif olmayabilir \u2014 kontrol edin.<\/li>\n<li>Baz\u0131 hosting panellerinde (cPanel\/WHM gibi) \u201cEnable HTTP\/2\u201d se\u00e7ene\u011fi bulunmaktad\u0131r \u2014 GUI \u00fczerinden a\u00e7\u0131labilir. (<a title=\"How to Enable HTTP\/2 on an Apache Web Server\" href=\"https:\/\/www.inmotionhosting.com\/support\/server\/apache\/enable-http-2-apache\/?utm_source=chatgpt.com\" target=\"_blank\" rel=\"noopener\">InMotion Hosting<\/a>)<\/li>\n<\/ul>\n<article class=\"text-token-text-primary w-full focus:outline-none [--shadow-height:45px] has-data-writing-block:pointer-events-none has-data-writing-block:-mt-(--shadow-height) has-data-writing-block:pt-(--shadow-height) [&amp;:has([data-writing-block])&gt;*]:pointer-events-auto scroll-mt-(--header-height)\" dir=\"auto\" tabindex=\"-1\" data-turn-id=\"fe5778ff-7e5e-4c6c-b429-f287c378bbda\" data-testid=\"conversation-turn-29\" data-scroll-anchor=\"false\" data-turn=\"user\">\n<div class=\"text-base my-auto mx-auto pt-12 [--thread-content-margin:--spacing(4)] thread-sm:[--thread-content-margin:--spacing(6)] thread-lg:[--thread-content-margin:--spacing(16)] px-(--thread-content-margin)\">\n<div class=\"[--thread-content-max-width:40rem] thread-lg:[--thread-content-max-width:48rem] mx-auto max-w-(--thread-content-max-width) flex-1 group\/turn-messages focus-visible:outline-hidden relative flex w-full min-w-0 flex-col\" tabindex=\"-1\">\n<div class=\"flex max-w-full flex-col grow\">\n<div class=\"min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal [.text-message+&amp;]:mt-1\" dir=\"auto\" data-message-author-role=\"user\" data-message-id=\"fe5778ff-7e5e-4c6c-b429-f287c378bbda\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden items-end rtl:items-start\">\n<div class=\"user-message-bubble-color relative rounded-[18px] px-4 py-1.5 data-[multiline]:py-3 max-w-[var(--user-chat-width,70%)]\">\n<h2 class=\"whitespace-pre-wrap\">Apache \u0130cin HTTP\/2 Aktif Etmek &#8211; Sonu\u00e7<\/h2>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/article>\n<p>Apache \u00fczerinde HTTP\/2\u2019yi aktif etmek, backlinkler, kullan\u0131c\u0131 deneyimi ve site h\u0131z\u0131 bak\u0131m\u0131ndan \u00f6zellikle \u00f6nemli bir ad\u0131m.<br \/>\nDo\u011fru mod\u00fcller y\u00fcklenmi\u015f, MPM uygun se\u00e7ilmi\u015f ve <code>Protocols<\/code> direktifi do\u011fru eklenmi\u015fse, modern taray\u0131c\u0131larda \u201ch2\u201d protokol\u00fcyle h\u0131zl\u0131 i\u00e7erik sunumu ba\u015flam\u0131\u015f olur.<br \/>\nBug\u00fcn bir ka\u00e7 ad\u0131mda bu y\u00fckseltmeyi yaparak web sitelerinizi modern standartlara uygun hale getirebilirsiniz.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Web performans\u0131 ve SEO a\u00e7\u0131s\u0131ndan g\u00fcn\u00fcm\u00fczde protokol katmanlar\u0131n\u0131n \u00f6nemi giderek art\u0131yor. \u00d6zellikle HTTP\/2, birden \u00e7ok iste\u011fi tek TCP ba\u011flant\u0131s\u0131 \u00fczerinden i\u015fleyebilme, ba\u015fl\u0131k s\u0131k\u0131\u015ft\u0131rma, \u00f6nceliklendirme gibi avantajlar\u0131yla HTTP\/1.1\u2019e g\u00f6re b\u00fcy\u00fck bir ilerleme sunuyor. (Apache HTTP Server) E\u011fer Apache sunucunuz varsa ve sitelerinizin h\u0131z\u0131n\u0131 art\u0131rmak, kullan\u0131c\u0131 deneyimini iyile\u015ftirmek istiyorsan\u0131z HTTP\/2\u2019yi aktif etmek \u00e7ok do\u011fru bir ad\u0131m olur. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[],"class_list":["post-231","post","type-post","status-publish","format-standard","hentry","category-linux-genel"],"_links":{"self":[{"href":"https:\/\/adveyer.com\/blog\/wp-json\/wp\/v2\/posts\/231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adveyer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/adveyer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/adveyer.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/adveyer.com\/blog\/wp-json\/wp\/v2\/comments?post=231"}],"version-history":[{"count":1,"href":"https:\/\/adveyer.com\/blog\/wp-json\/wp\/v2\/posts\/231\/revisions"}],"predecessor-version":[{"id":232,"href":"https:\/\/adveyer.com\/blog\/wp-json\/wp\/v2\/posts\/231\/revisions\/232"}],"wp:attachment":[{"href":"https:\/\/adveyer.com\/blog\/wp-json\/wp\/v2\/media?parent=231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/adveyer.com\/blog\/wp-json\/wp\/v2\/categories?post=231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/adveyer.com\/blog\/wp-json\/wp\/v2\/tags?post=231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}