Skip to content

Apache HTTP Server /etc/httpd/conf.d/welcome.conf

Original 📋 CentOS Stream 9 20 Zeilen

Läuft auf

Ansicht:
CentOS Stream 9
Gleich auf:
Red Hat Enterprise Linux 9 (Plow)
Andere Versionen:

Details

Größe
20 Zeilen
MD5
574b5d4686c892e81fa808db0d311ff8
SHA256
77efdb75195b1280820a47c6f025a1a8e3de5afe4d80472674b4074b21b69abc
/etc/httpd/conf.d/welcome.conf
# 
# 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

Kopieren & Einfügen

curl:
curl https://exampleconfig.com/api/v1/config/original/574b5d4686c892e81fa808db0d311ff8?hint=welcome.conf
wget:
wget -O welcome.conf https://exampleconfig.com/api/v1/config/original/574b5d4686c892e81fa808db0d311ff8?hint=welcome.conf

Für KI-Agenten

<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.

Apache HTTP Server installieren

Alpine Linux

sudo apk add apache2

Debian

sudo apt update && sudo apt install apache2

Red Hat Enterprise Linux

sudo yum install httpd

Ubuntu

sudo apt update && sudo apt install apache2

Ablageort

Pfad
/etc/httpd/conf.d/welcome.conf
Verzeichnis
/etc/httpd/conf.d/
Bedeutung
Systemweites Konfig-Verzeichnis
Beschreibung
In /etc/ liegen systemweite Einstellungen, die alle Benutzer betreffen.

FAQ

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.