Ubuntu 默认配置
未改动,随时复制。
Apache HTTP Server - /etc/apache2/mods-available/alias.load
📍 Ubuntu 24.04 LTS (Noble Numbat)
LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so
Apache HTTP Server - /etc/apache2/mods-available/alias.conf
📍 Ubuntu 24.04 LTS (Noble Numbat)
# Aliases: Add here as many aliases as you need (with no limit). The format is # Alias fakename realname # # …
# 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 …
Apache HTTP Server - /etc/apache2/mods-available/actions.load
📍 Ubuntu 24.04 LTS (Noble Numbat)
LoadModule actions_module /usr/lib/apache2/modules/mod_actions.so
LoadModule actions_module /usr/lib/apache2/modules/mod_actions.so
Apache HTTP Server - /etc/apache2/mods-available/actions.conf
📍 Ubuntu 24.04 LTS (Noble Numbat)
# a2enmod-note: needs-configuration # # Action lets you define media types that will execute a script whenev…
# 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 …
Apache HTTP Server - /etc/apache2/mods-available/access_compat.load
📍 Ubuntu 24.04 LTS (Noble Numbat)
# Depends: authn_core LoadModule access_compat_module /usr/lib/apache2/modules/mod_access_compat.so
# Depends: authn_core LoadModule access_compat_module /usr/lib/apache2/modules/mod_access_compat.so
Apache HTTP Server - /etc/apache2/conf-available/serve-cgi-bin.conf
📍 Ubuntu 24.04 LTS (Noble Numbat)
<IfModule mod_alias.c> <IfModule mod_cgi.c> Define ENABLE_USR_LIB_CGI_BIN </IfModule> <IfModule mod_cgi…
<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…
Apache HTTP Server - /etc/apache2/conf-available/security.conf
📍 Ubuntu 24.04 LTS (Noble Numbat)
# Changing the following options will not really affect the security of the # server, but might make attacks …
# 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 …
Apache HTTP Server - /etc/apache2/conf-available/other-vhosts-access-log.conf
📍 Ubuntu 24.04 LTS (Noble Numbat)
# Define an access log for VirtualHosts that don't define their own logfile CustomLog ${APACHE_LOG_DIR}/other…
# Define an access log for VirtualHosts that don't define their own logfile
CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined
Apache HTTP Server - /etc/apache2/conf-available/localized-error-pages.conf
📍 Ubuntu 24.04 LTS (Noble Numbat)
# Customizable error responses come in three flavors: # 1) plain text # 2) local redirects # 3) external redi…
# 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…
Apache HTTP Server - /etc/apache2/conf-available/charset.conf
📍 Ubuntu 24.04 LTS (Noble Numbat)
# Read the documentation before enabling AddDefaultCharset. # In general, it is only a good idea if you know …
# 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…
MySQL - /etc/mysql/mysql.cnf
📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. # # This program is free software; you can redistri…
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0,…
MySQL - /etc/mysql/my.cnf.fallback
📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. # # This program is free software; you can redistri…
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0,…
MySQL - /etc/mysql/mysql.conf.d/mysqld.cnf
📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. # # This program is free software; you can redistri…
# Copyright (c) 2014, 2023, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0,…
MySQL - /etc/mysql/conf.d/mysql.cnf
📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. # # This program is free software; you can redistri…
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0,…
MariaDB - /etc/mysql/debian.cnf
📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)
# Automatically generated for Debian scripts. DO NOT TOUCH! [client] host = localhost user = root pas…
# Automatically generated for Debian scripts. DO NOT TOUCH! [client] host = localhost user = root password = socket = /var/run/mysqld/mysqld.sock [mysql_upgrade] host = localhost user …
MariaDB - /etc/mysql/debian-start
📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)
#!/bin/bash # # This script is executed by "/etc/init.d/mysql" on every (re)start. # # Changes to this file w…
#!/bin/bash # # This script is executed by "/etc/init.d/mysql" on every (re)start. # # Changes to this file will be preserved when updating the Debian package. # # NOTE: This file is read only by the…
MariaDB - /etc/mysql/mariadb.cnf
📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)
# The MariaDB configuration file # # The MariaDB/MySQL tools read configuration files in the following order:…
# The MariaDB configuration file # # The MariaDB/MySQL tools read configuration files in the following order: # 1. "/etc/mysql/mariadb.cnf" (this file) to set global defaults, # 2. "/etc/mysql/conf.d…
MariaDB - /etc/mysql/my.cnf.fallback
📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. # # This program is free software; you can redistri…
# Copyright (c) 2015, 2023, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2.0,…
MariaDB - /etc/mysql/mariadb.conf.d/50-server.cnf
📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)
# # These groups are read by MariaDB server. # Use it for options that only the server (but not clients) shou…
# # These groups are read by MariaDB server. # Use it for options that only the server (but not clients) should see # # See the examples of server my.cnf files in /usr/share/mysql/ # # this is read …
MariaDB - /etc/mysql/mariadb.conf.d/50-mysqld_safe.cnf
📍 Ubuntu 18.04 LTS (Bionic Beaver), Ubuntu 20.04 LTS (Focal Fossa), Ubuntu 22.04 LTS (Jammy Jellyfish), Ubuntu 24.04 LTS (Noble Numbat)
# NOTE: This file is read only by the traditional SysV init script, not systemd. # MariaDB systemd does _not_…
# NOTE: This file is read only by the traditional SysV init script, not systemd. # MariaDB systemd does _not_ utilize mysqld_safe nor read this file. # # For similar behaviour, systemd users should c…