Apache HTTP Server /etc/apache2/mods-available/alias.conf

Original 📋 Ubuntu 24.04 LTS (Noble Numbat) 19 Zeilen

Läuft auf

Ansicht:
Ubuntu 24.04 LTS (Noble Numbat)
Gleich auf:
Debian 13 (Trixie)
Andere Versionen:

Details

Größe
19 Zeilen
MD5
a1632bd99783ef6ca8a47a6005d04d56
SHA256
534970724f124935b43fbfd63989f8d95b76bb185330a4b72393c5391b81bff2
/etc/apache2/mods-available/alias.conf
# Aliases: Add here as many aliases as you need (with no limit). The format is
# Alias fakename realname
#
# Note that if you include a trailing / on fakename then the server will
# require it to be present in the URL.  So "/icons" isn't aliased in this
# example, only "/icons/".  If the fakename is slash-terminated, then the
# realname must also be slash terminated, and if the fakename omits the
# trailing slash, the realname must also omit it.
#
# We include the /icons/ alias for FancyIndexed directory listings.  If
# you do not use FancyIndexing, you may comment this out.

Alias /icons/ "/usr/share/apache2/icons/"

<Directory "/usr/share/apache2/icons">
	Options FollowSymlinks
	AllowOverride None
	Require all granted
</Directory>

Kopieren & Einfügen

curl:
curl https://exampleconfig.com/api/v1/config/original/a1632bd99783ef6ca8a47a6005d04d56?hint=alias.conf
wget:
wget -O alias.conf https://exampleconfig.com/api/v1/config/original/a1632bd99783ef6ca8a47a6005d04d56?hint=alias.conf

Für KI-Agenten

<prompt><role>DevOps agent</role><source url='https://exampleconfig.com/api/v1/config/original/a1632bd99783ef6ca8a47a6005d04d56?hint=alias.conf' /><config><app>Apache HTTP Server</app><os>Ubuntu 24.04 LTS (Noble Numbat)</os><location>/etc/apache2/mods-available/alias.conf</location><lines>19</lines><md5>a1632bd99783ef6ca8a47a6005d04d56</md5><sha256>534970724f124935b43fbfd63989f8d95b76bb185330a4b72393c5391b81bff2</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/apache2/mods-available/alias.conf
Verzeichnis
/etc/apache2/mods-available/
Bedeutung
Systemweites Konfig-Verzeichnis
Beschreibung
In /etc/ liegen systemweite Einstellungen, die alle Benutzer betreffen.

FAQ

Wann sollte ich alias.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/mods-available/alias.conf, ersetze sie und lade Apache HTTP Server neu oder starte es neu.

Ist alias.conf für den produktiven Einsatz geeignet?

Das ist der Hersteller-Default für Ubuntu 24.04 LTS (Noble Numbat). 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 Ubuntu 24.04 LTS (Noble Numbat).

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.