|
23.
|
|
|
<emphasis>mods-enabled:</emphasis> holds <emphasis>symlinks</emphasis> to the files in <filename>/etc/apache2/mods-available</filename>. When a module configuration file is symlinked it will be enabled the next time <application>apache2</application> is restarted.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:119(para)
|
|
24.
|
|
|
<emphasis>ports.conf:</emphasis> houses the directives that determine which TCP ports Apache2 is listening on.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:126(para)
|
|
25.
|
|
|
<emphasis>sites-available:</emphasis> this directory has configuration files for Apache2 <emphasis>Virtual Hosts</emphasis>. Virtual Hosts allow Apache2 to be configured for multiple sites that have separate configurations.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:131(para)
|
|
26.
|
|
|
<emphasis>sites-enabled:</emphasis> like mods-enabled, <filename role="directory">sites-enabled</filename> contains symlinks to the <filename>/etc/apache2/sites-available</filename> directory. Similarly when a configuration file in sites-available is symlinked, the site configured by it will be active once Apache2 is restarted.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:138(para)
|
|
27.
|
|
|
<emphasis>magic:</emphasis> instructions for determining MIME type based on the first few bytes of a file.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:145(para)
|
|
28.
|
|
|
In addition, other configuration files may be added using the <emphasis>Include</emphasis> directive, and wildcards can be used to include many configuration files. Any directive may be placed in any of these configuration files. Changes to the main configuration files are only recognized by Apache2 when it is started or restarted.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:151(para)
|
|
29.
|
|
|
The server also reads a file containing mime document types; the filename is set by the <emphasis>TypesConfig</emphasis> directive, typically via <filename>/etc/apache2/mods-available/mime.conf</filename>, which might also include additions and overrides, and is <filename>/etc/mime.types</filename> by default.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:160(para)
|
|
30.
|
|
|
Basic Settings
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:168(title)
|
|
31.
|
|
|
This section explains Apache2 server essential configuration parameters. Refer to the <ulink url="http://httpd.apache.org/docs/2.4/">Apache2 Documentation</ulink> for more details.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:169(para)
|
|
32.
|
|
|
Apache2 ships with a virtual-host-friendly default configuration. That is, it is configured with a single default virtual host (using the <emphasis>VirtualHost</emphasis> directive) which can be modified or used as-is if you have a single site, or used as a template for additional virtual hosts if you have multiple sites. If left alone, the default virtual host will serve as your default site, or the site users will see if the URL they enter does not match the <emphasis>ServerName</emphasis> directive of any of your custom sites. To modify the default virtual host, edit the file <filename>/etc/apache2/sites-available/000-default.conf</filename>.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:177(para)
|