howto:linux:apache:installation

SSI (Server Side Includes)

Um Server Sides Includes nutzen zu können, muss der Apache Web-Server mit dem Modul include kompiliert werden.

Will man SSI auf allen virtuellen Hosts nutzen können, kann man dies in der Konfigurationsdatei /etc/apache/httpd.conf vorhehmen.

Options +Includes

AddType text/html .html

AddHandler server-parsed .html

Optional kann SSI auch für ein oder mehrere virtuelle Hosts aktiviert werden. In der Konfigurationsdatei für den virtuellen Host

conf
        <Directory "/var/www/localhost/htdocs/">
            Options +Includes
            <RequireAll>
                Require all granted
            </RequireAll>
        </Directory>

Den Apache-Server zuletzt neu starten

systemctl restart apache2

Variabeln

siehe hier

  • /var/www/dokuwiki/data/pages/howto/linux/apache/installation.txt
  • Zuletzt geändert: 2024/10/27 10:14
  • von Roland Gantenbein