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)
# Depends: session authn_core LoadModule auth_form_module /usr/lib/apache2/modules/mod_auth_form.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# Depends: authn_core LoadModule auth_digest_module /usr/lib/apache2/modules/mod_auth_digest.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# Depends: authn_core LoadModule auth_basic_module /usr/lib/apache2/modules/mod_auth_basic.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# Depends: mime LoadModule asis_module /usr/lib/apache2/modules/mod_asis.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
LoadModule allowmethods_module /usr/lib/apache2/modules/mod_allowmethods.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# 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 β¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
LoadModule actions_module /usr/lib/apache2/modules/mod_actions.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# a2enmod-note: needs-configuration # # Action lets you define media types that will execute a script whenever # a matching file is called. This eliminates the need for repeated URL # pathnames for β¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# Depends: authn_core LoadModule access_compat_module /usr/lib/apache2/modules/mod_access_compat.so
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
<IfModule mod_alias.c> <IfModule mod_cgi.c> Define ENABLE_USR_LIB_CGI_BIN </IfModule> <IfModule mod_cgid.c> Define ENABLE_USR_LIB_CGI_BIN </IfModule> <IfDefine ENABLE_USR_LIB_CGI_BIN> Scβ¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# Changing the following options will not really affect the security of the # server, but might make attacks slightly more difficult in some cases. # # ServerTokens # This directive configures what β¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# Define an access log for VirtualHosts that don't define their own logfile CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# Customizable error responses come in three flavors: # 1) plain text # 2) local redirects # 3) external redirects # # Some examples: #ErrorDocument 500 "The server made a boo boo." #ErrorDocument 40β¦
π Debian 12 (Bookworm)
π Ubuntu 24.04 LTS (Noble Numbat)
# Read the documentation before enabling AddDefaultCharset. # In general, it is only a good idea if you know that all your files # have this encoding. It will override any encoding given in the filesβ¦
π Red Hat Enterprise Linux 9 (Plow)
π CentOS Stream 9
# Note that logs are not compressed unless "compress" is configured, # which can be done either here or globally in /etc/logrotate.conf. /var/log/httpd/*log { missingok notifempty sharedsβ¦
π Red Hat Enterprise Linux 9 (Plow)
π CentOS Stream 9
# This is a template for httpd instances. # See httpd@.service(8) for more information. [Unit] Description=The Apache HTTP Server After=network.target remote-fs.target nss-lookup.target Documentatioβ¦
π Red Hat Enterprise Linux 9 (Plow)
π CentOS Stream 9
# See httpd.socket(8) for more information on using the httpd service. [Unit] Description=Apache httpd Server Socket Documentation=man:httpd.socket(8) [Socket] ListenStream=80 NoDelay=true DeferAccβ¦
π Red Hat Enterprise Linux 9 (Plow)
π CentOS Stream 9
# See httpd.service(8) for more information on using the httpd service. # Modifying this file in-place is not recommended, because changes # will be overwritten during package upgrades. To customizβ¦
π Red Hat Enterprise Linux 9 (Plow)
π CentOS Stream 9
# This file configures systemd module: LoadModule systemd_module modules/mod_systemd.so
Explore configs by application or operating system