Most Requested Default Configs
The configs everyone needs. Ready to copy.
Apache HTTP Server Configurations
Most requested defaults for Apache HTTP Server
Apache HTTP Server
Ubuntu 24.04
<VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server …
<VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port that # the server uses to identify itself. This is used when creating # redir…
Apache HTTP Server
Ubuntu 24.04
LoadModule cern_meta_module /usr/lib/apache2/modules/mod_cern_meta.so
LoadModule cern_meta_module /usr/lib/apache2/modules/mod_cern_meta.so
Apache HTTP Server
Red Hat Enterprise Linux 9
# # This is the main Apache HTTP server configuration file. It contains the # configuration directives that …
# # This is the main Apache HTTP server configuration file. It contains the # configuration directives that give the server its instructions. # See <URL:http://httpd.ap…
APT Configurations
Most requested defaults for APT
APT
Ubuntu 22.04
Apt::AutoRemove::SuggestsImportant "false";
Apt::AutoRemove::SuggestsImportant "false";
APT
Debian 9
[Unit] Description=Daily apt download activities Documentation=man:apt(8) ConditionACPower=true After=network…
[Unit] Description=Daily apt download activities Documentation=man:apt(8) ConditionACPower=true After=network-online.target Wants=network-online.target [Service] Type=o…
APT
Debian 13
# Since Docker users using "RUN apt-get update && apt-get install -y ..." in # their Dockerfiles don't go del…
# Since Docker users using "RUN apt-get update && apt-get install -y ..." in # their Dockerfiles don't go delete the lists files afterwards, we want them to # be as smal…
MariaDB Configurations
Most requested defaults for MariaDB
MariaDB
Debian 9
# # 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/s…
MariaDB
Debian 9
#!/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:…
MariaDB
Alpine Linux 3.21
# # 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 # this is read by the standalone daemon and embedded…
MySQL Configurations
Most requested defaults for MySQL
MySQL
Debian 9
# Copyright (c) 2015, 2021, Oracle and/or its affiliates. # # This program is free software; you can redistri…
# Copyright (c) 2015, 2021, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Genera…
MySQL
Debian 9
# Copyright (c) 2014, 2021, Oracle and/or its affiliates. # # This program is free software; you can redistri…
# Copyright (c) 2014, 2021, Oracle and/or its affiliates. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Genera…
MySQL
Debian 10
# 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 Genera…
NGINX Configurations
Most requested defaults for NGINX
NGINX
Debian 9
## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration …
## # You should look at the following URL's in order to grasp a solid understanding # of Nginx configuration files in order to fully unleash the power of Nginx. # https:…
NGINX
Debian 11
# Stop dance for nginx # ======================= # # ExecStop sends SIGSTOP (graceful stop) to the nginx proc…
# Stop dance for nginx # ======================= # # ExecStop sends SIGSTOP (graceful stop) to the nginx process. # If, after 5s (--retry QUIT/5) nginx is still running,…
NGINX
Debian 9
# regex to split $uri to $fastcgi_script_name and $fastcgi_path fastcgi_split_path_info ^(.+\.php)(/.+)$; # …
# regex to split $uri to $fastcgi_script_name and $fastcgi_path fastcgi_split_path_info ^(.+\.php)(/.+)$; # Check that the PHP script exists before passing it try_files…
Odoo Configurations
Most requested defaults for Odoo
Odoo
Debian 9
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep …
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep = , ; db_maxconn = 64 ; db_name = False ; db_template = temp…
Odoo
Red Hat Enterprise Linux 9
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep …
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep = , ; db_maxconn = 64 ; db_name = False ; db_template = temp…
Odoo
CentOS Stream 9
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep …
[options] addons_path = /mnt/extra-addons data_dir = /var/lib/odoo ; admin_passwd = admin ; csv_internal_sep = , ; db_maxconn = 64 ; db_name = False ; db_template = temp…
OpenSSH Configurations
Most requested defaults for OpenSSH
OpenSSH
Debian 9
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $ # This is the sshd server system-wide config…
# $OpenBSD: sshd_config,v 1.100 2016/08/15 12:32:04 naddy Exp $ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more information. #…
OpenSSH
Ubuntu 18.04
# This is the ssh client system-wide configuration file. See # ssh_config(5) for more information. This fi…
# This is the ssh client system-wide configuration file. See # ssh_config(5) for more information. This file provides defaults for # users, and the values can be chan…
OpenSSH
Red Hat Enterprise Linux 9
# This system is following system-wide crypto policy. The changes to # crypto properties (Ciphers, MACs, ...)…
# This system is following system-wide crypto policy. The changes to # crypto properties (Ciphers, MACs, ...) will not have any effect in # this or following included fi…
OpenSSL Configurations
Most requested defaults for OpenSSL
OpenSSL
Debian 12
# # OpenSSL example configuration file. # See doc/man5/config.pod for more info. # # This is mostly being use…
# # OpenSSL example configuration file. # See doc/man5/config.pod for more info. # # This is mostly being used for generation of certificate requests, # but may be used …
OpenSSL
Alpine Linux 3.21
# # OpenSSL example configuration file. # See doc/man5/config.pod for more info. # # This is mostly being use…
# # OpenSSL example configuration file. # See doc/man5/config.pod for more info. # # This is mostly being used for generation of certificate requests, # but may be used …
OpenSSL
Alpine Linux 3.21
# This file specifies the Certificate Transparency logs # that are to be trusted. # Google's list of logs ca…
# This file specifies the Certificate Transparency logs # that are to be trusted. # Google's list of logs can be found here: # www.certificate-transparency.org/kn…
Postfix Configurations
Most requested defaults for Postfix
Postfix
Debian 10
# See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying…
# See /usr/share/postfix/main.cf.dist for a commented, more complete version # Debian specific: Specifying a file name will cause the first # line of that file to be …
Postfix
Debian 9
# Global Postfix configuration file. This file lists only a subset # of all parameters. For the syntax, and f…
# Global Postfix configuration file. This file lists only a subset # of all parameters. For the syntax, and for a complete parameter # list, see the postconf(5) manual p…
Postfix
Debian 9
# # Postfix master process configuration file. For details on the format # of the file, see the master(5) ma…
# # Postfix master process configuration file. For details on the format # of the file, see the master(5) manual page (command: "man 5 master" or # on-line: http://www.…
PostgreSQL Configurations
Most requested defaults for PostgreSQL
PostgreSQL
Debian 10
# PostgreSQL User Name Maps # ========================= # # Refer to the PostgreSQL documentation, chapter "C…
# PostgreSQL User Name Maps # ========================= # # Refer to the PostgreSQL documentation, chapter "Client # Authentication" for a complete description. A short…
PostgreSQL
Debian 9
/var/log/postgresql/*.log { weekly rotate 10 copytruncate delaycompress co…
/var/log/postgresql/*.log {
weekly
rotate 10
copytruncate
delaycompress
compress
notifempty
missingok
su root roo…
PostgreSQL
Ubuntu 20.04
# postgresql.service is the meta unit for managing all PostgreSQL clusters on # the system at once. Conceptua…
# postgresql.service is the meta unit for managing all PostgreSQL clusters on # the system at once. Conceptually, this unit is more like a systemd target, # but we are u…
Redis Configurations
Most requested defaults for Redis
Redis
Debian 9
[Unit] Description=Advanced key-value store After=network.target Documentation=http://redis.io/documentation,…
[Unit] Description=Advanced key-value store After=network.target Documentation=http://redis.io/documentation, man:redis-server(1) [Service] Type=forking ExecStart=/usr/…
Redis
Alpine Linux 3.21
/var/log/redis/*.log { notifempty missingok }
/var/log/redis/*.log {
notifempty
missingok
}
Redis
Debian 12
# Templated service file for redis-server(1) # # Each instance of redis-server requires its own configuration…
# Templated service file for redis-server(1) # # Each instance of redis-server requires its own configuration file: # # $ cp /etc/redis/redis.conf /etc/redis/redis-myn…
Need a specific default?
Search across apps and distros to find the exact file you need.
Search all configs