apache.php

Code Hygiene Score: 100

Keine Issues gefunden.

Code

<section>
<h2>6. Apache Webserver</h2>

<h3>6.1 Installation</h3>
<pre><code>apt-get install -y apache2</code></pre>

<h3>6.2 Module aktivieren</h3>
<pre><code>a2enmod ssl http2 brotli rewrite headers proxy proxy_http proxy_fcgi proxy_wstunnel setenvif</code></pre>

<h3>6.3 Brotli-Kompression</h3>
<p>Datei: <code>/etc/apache2/conf-available/brotli.conf</code></p>
<pre><code>&lt;IfModule mod_brotli.c&gt;
    AddOutputFilterByType BROTLI_COMPRESS text/html text/plain text/xml text/css text/javascript application/javascript application/json application/xml
    BrotliCompressionQuality 4
&lt;/IfModule&gt;</code></pre>

<h3>6.4 Status</h3>
<p>Apache/2.4.x mit HTTP/2 und Brotli-Unterstuetzung</p>
</section>
← Übersicht