Wann sollte ich info.conf verwenden?
Nutze sie, um eine fehlende Default-Datei wiederherzustellen, zu prüfen, was ausgeliefert wurde, oder sie gegen deine aktuelle Apache HTTP Server-Config zu diffen.
#
# Get information about the requests being processed by the server
# and the configuration of the server.
#
# Required modules: mod_authz_core, mod_authz_host,
# mod_info (for the server-info handler),
# mod_status (for the server-status handler)
<IfModule status_module>
#
# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
<Location /server-status>
SetHandler server-status
Require host .example.com
Require ip 127
</Location>
#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On
</IfModule>
<IfModule info_module>
#
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#
<Location /server-info>
SetHandler server-info
Require host .example.com
Require ip 127
</Location>
</IfModule>
curl https://exampleconfig.com/api/v1/config/original/6fbbe7cb94f43d61ef4c57eee7b7ca9f?hint=info.conf
wget -O info.conf https://exampleconfig.com/api/v1/config/original/6fbbe7cb94f43d61ef4c57eee7b7ca9f?hint=info.conf
<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/6fbbe7cb94f43d61ef4c57eee7b7ca9f?hint=info.conf' /><config><app>Apache HTTP Server</app><os>Alpine Linux v3.21</os><location>/etc/apache2/conf.d/info.conf</location><lines>40</lines><md5>6fbbe7cb94f43d61ef4c57eee7b7ca9f</md5><sha256>15a9acc18910e569d49854e8a3aafca442f94df9a7ea14bbd365bf30d8660020</sha256></config></prompt>
Füge es in Claude, ChatGPT oder einen anderen KI-Assistenten ein.
sudo apk add apache2
sudo apt update && sudo apt install apache2
sudo yum install httpd
sudo apt update && sudo apt install apache2
Wann sollte ich info.conf verwenden?
Nutze sie, um eine fehlende Default-Datei wiederherzustellen, zu prüfen, was ausgeliefert wurde, oder sie gegen deine aktuelle Apache HTTP Server-Config zu diffen.
Wie stelle ich die Defaults von Apache HTTP Server wieder her?
Lad die Datei runter, sichere die aktuelle in /etc/apache2/conf.d/info.conf, ersetze sie und lade Apache HTTP Server neu oder starte es neu.
Ist info.conf für den produktiven Einsatz geeignet?
Das ist der Hersteller-Default für Alpine Linux v3.21. Nimm sie als Basis und prüf Security- und Performance-Einstellungen, bevor du sie produktiv nutzt.
Wie unterscheidet sich das von anderen OS-Versionen?
Defaults variieren je nach Distro und Version. Diese Version passt zu Alpine Linux v3.21.
Kann ich das fürs Troubleshooting von Apache HTTP Server nutzen?
Ja. Diff es gegen deine Version, finde Abweichungen und stell nur die Teile wieder her, die du brauchst.