Original, unaltered Apache HTTP Server config files from fresh installations
Original, unaltered configurations from fresh installations
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
π Alpine Linux v3.21
/var/log/apache2/*.log { daily missingok rotate 14 compress delaycompress notifempty create 640 root adm sharedscripts prerotate if [ -d /etc/logrotate.d/httpd-prerotate ]; then run-parβ¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
[Unit] Description=The Apache HTTP Server After=network.target remote-fs.target nss-lookup.target ConditionPathIsDirectory=/etc/apache2-%i Documentation=https://httpd.apache.org/docs/2.4/ [Service] β¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
[Unit] Description=The Apache HTTP Server After=network.target remote-fs.target nss-lookup.target Documentation=https://httpd.apache.org/docs/2.4/ [Service] Type=forking Environment=APACHE_STARTED_Bβ¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc/apache2/sites-enabled/000-default.conf Listen 80 <IfModule ssl_moduleβ¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
π Alpine Linux v3.21
# Magic data for mod_mime_magic (originally for file(1) command) # # The format is 4-5 columns: # Column #1: byte number to begin checking from, ">" indicates continuation # Column #2: type of β¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# envvars - default environment variables for apache2ctl # this won't be correct after changing uid unset HOME # for supporting multiple apache2 instances if [ "${APACHE_CONFDIR##/etc/apache2-}" !=β¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See http://httpd.apache.org/docs/2.4/ for detailed informatioβ¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
<VirtualHost *:443> ServerAdmin webmaster@localhost DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also β¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
<VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redirection URLs. In the context ofβ¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
LoadModule xml2enc_module /usr/lib/apache2/modules/mod_xml2enc.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
LoadModule vhost_alias_module /usr/lib/apache2/modules/mod_vhost_alias.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
LoadModule usertrack_module /usr/lib/apache2/modules/mod_usertrack.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
LoadModule userdir_module /usr/lib/apache2/modules/mod_userdir.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
UserDir public_html UserDir disabled root <Directory /home/*/public_html> AllowOverride FileInfo AuthConfig Limit Indexes Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec Require meβ¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
LoadModule unique_id_module /usr/lib/apache2/modules/mod_unique_id.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
LoadModule suexec_module /usr/lib/apache2/modules/mod_suexec.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
LoadModule substitute_module /usr/lib/apache2/modules/mod_substitute.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
LoadModule status_module /usr/lib/apache2/modules/mod_status.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# Allow server status reports generated by mod_status, # with the URL of http://servername/server-status # Uncomment and change the "192.0.2.0/24" to allow access from other hosts. <Location /serverβ¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# Depends: setenvif mime socache_shmcb LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
Explore configs by application or operating system