apache:configure:config_files
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
apache:configure:config_files [2023/07/17 09:26] – created peter | apache:configure:config_files [2023/07/17 09:42] (current) – peter | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Apache - Configure - Config files ====== | ====== Apache - Configure - Config files ====== | ||
+ | |||
+ | Apache2 is configured by placing directives in plain text configuration files. | ||
+ | |||
+ | * These directives are separated between the following files and directories: | ||
+ | |||
+ | ^Filename^Description^ | ||
+ | |apache2.conf|The main Apache2 configuration file. Contains settings that are global to Apache2.| | ||
+ | |::: | ||
+ | |httpd.conf|Historically the main Apache2 configuration file, named after the httpd daemon. Now the file does not exist. In older versions of Ubuntu the file might be present, but empty, as all configuration options have been moved to the below referenced directories.| | ||
+ | |conf-available|This directory contains available configuration files. All files that were previously in / | ||
+ | |conf-enabled|Holds symlinks to the files in / | ||
+ | |envvars|File where Apache2 environment variables are set.| | ||
+ | |mods-available|This directory contains configuration files to both load modules and configure them. Not all modules will have specific configuration files, however.| | ||
+ | |mods-enabled|Holds symlinks to the files in / | ||
+ | |ports.conf|Houses the directives that determine which TCP ports Apache2 is listening on.| | ||
+ | |sites-available|This directory has configuration files for Apache2 Virtual Hosts. Virtual Hosts allow Apache2 to be configured for multiple sites that have separate configurations.| | ||
+ | |sites-enabled|Like mods-enabled, | ||
+ | |magic|Instructions for determining MIME type based on the first few bytes of a file.| | ||
+ | |||
+ | ---- | ||
+ | |||
+ | <WRAP info> | ||
+ | **NOTE: | ||
+ | |||
+ | * Any directive may be placed in any of these configuration files. | ||
+ | |||
+ | The server also reads a file containing mime document types; the filename is set by the **TypesConfig** directive, typically via / | ||
+ | |||
+ | </ | ||
apache/configure/config_files.1689585993.txt.gz · Last modified: 2023/07/17 09:26 by peter