Apache HTTP Server /etc/httpd/conf.modules.d/00-mpm.conf

Original 📋 Red Hat Enterprise Linux 9 (Plow) 23 Zeilen

Läuft auf

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

Details

Größe
23 Zeilen
MD5
39b770d5c3dc6aba1115b52e6ed39afa
SHA256
6e95279fb9a7ac7de312b1533a4b3241c3555231b45a80005a2bb3d264d2a7f5
/etc/httpd/conf.modules.d/00-mpm.conf
# Select the MPM module which should be used by uncommenting exactly
# one of the following LoadModule lines.  See the httpd.conf(5) man
# page for more information on changing the MPM.

# prefork MPM: Implements a non-threaded, pre-forking web server
# See: http://httpd.apache.org/docs/2.4/mod/prefork.html
#
# NOTE: If enabling prefork, the httpd_graceful_shutdown SELinux
# boolean should be enabled, to allow graceful stop/shutdown.
#
#LoadModule mpm_prefork_module modules/mod_mpm_prefork.so

# worker MPM: Multi-Processing Module implementing a hybrid
# multi-threaded multi-process web server
# See: http://httpd.apache.org/docs/2.4/mod/worker.html
#
#LoadModule mpm_worker_module modules/mod_mpm_worker.so

# event MPM: A variant of the worker MPM with the goal of consuming
# threads only for connections with active processing
# See: http://httpd.apache.org/docs/2.4/mod/event.html
#
LoadModule mpm_event_module modules/mod_mpm_event.so

Kopieren & Einfügen

curl:
curl https://exampleconfig.com/api/v1/config/original/39b770d5c3dc6aba1115b52e6ed39afa?hint=00-mpm.conf
wget:
wget -O 00-mpm.conf https://exampleconfig.com/api/v1/config/original/39b770d5c3dc6aba1115b52e6ed39afa?hint=00-mpm.conf

Für KI-Agenten

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/39b770d5c3dc6aba1115b52e6ed39afa?hint=00-mpm.conf' /><config><app>Apache HTTP Server</app><os>Red Hat Enterprise Linux 9 (Plow)</os><location>/etc/httpd/conf.modules.d/00-mpm.conf</location><lines>23</lines><md5>39b770d5c3dc6aba1115b52e6ed39afa</md5><sha256>6e95279fb9a7ac7de312b1533a4b3241c3555231b45a80005a2bb3d264d2a7f5</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.modules.d/00-mpm.conf
Verzeichnis
/etc/httpd/conf.modules.d/
Bedeutung
Systemweites Konfig-Verzeichnis
Beschreibung
In /etc/ liegen systemweite Einstellungen, die alle Benutzer betreffen.

FAQ

Wann sollte ich 00-mpm.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.modules.d/00-mpm.conf, ersetze sie und lade Apache HTTP Server neu oder starte es neu.

Ist 00-mpm.conf für den produktiven Einsatz geeignet?

Das ist der Hersteller-Default für Red Hat Enterprise Linux 9 (Plow). 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 Red Hat Enterprise Linux 9 (Plow).

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.