Wann sollte ich welcome.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.
#
# This configuration file enables the default "Welcome" page if there
# is no default index page present for the root URL. To disable the
# Welcome page, comment out all the lines below.
#
# NOTE: if this file is removed, it will be restored on upgrades.
#
<LocationMatch "^/+$">
Options -Indexes
ErrorDocument 403 /.noindex.html
</LocationMatch>
<Directory /usr/share/httpd/noindex>
AllowOverride None
Require all granted
</Directory>
Alias /.noindex.html /usr/share/httpd/noindex/index.html
Alias /poweredby.png /usr/share/httpd/icons/apache_pb3.png
Alias /system_noindex_logo.png /usr/share/httpd/icons/system_noindex_logo.png
curl https://exampleconfig.com/api/v1/config/original/574b5d4686c892e81fa808db0d311ff8?hint=welcome.conf
wget -O welcome.conf https://exampleconfig.com/api/v1/config/original/574b5d4686c892e81fa808db0d311ff8?hint=welcome.conf
<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/574b5d4686c892e81fa808db0d311ff8?hint=welcome.conf' /><config><app>Apache HTTP Server</app><os>CentOS Stream 9</os><location>/etc/httpd/conf.d/welcome.conf</location><lines>20</lines><md5>574b5d4686c892e81fa808db0d311ff8</md5><sha256>77efdb75195b1280820a47c6f025a1a8e3de5afe4d80472674b4074b21b69abc</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 welcome.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/httpd/conf.d/welcome.conf, ersetze sie und lade Apache HTTP Server neu oder starte es neu.
Ist welcome.conf für den produktiven Einsatz geeignet?
Das ist der Hersteller-Default für CentOS Stream 9. 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 CentOS Stream 9.
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.