|
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.
|
|
|
|
<emphasis>sites-available:</emphasis> (dostupné weby) tento priečinok obsahuje konfiguračné súbory pre tz. <emphasis>Virtual Hosts<emphasis> - Virtuálne stanice. Virtuálne stanice umožňujú nakonfigurovať Apache2 tak, aby poskytoval viacero stránok s osobitnou konfiguráciou.
|
|
Translated by
Matthew East
|
|
|
|
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.
|
|
|
|
<emphasis>sites-enabled:</emphasis> (povolené weby) podobne ako pri mods-enabled, <filename role="directory">sites-enabled</filename> obsahuje symbolické odkazy do priečinka <filename>/etc/apache2/sites-available</filename>. Ak je do tohto priečinka pridaný odkaz na konfiguračný súbor v sites-available, aktivuje sa pri najbližšom štarte servera Apache.
|
|
Translated by
Matthew East
|
|
|
|
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.
|
|
|
|
Okrem týchto konfiguračných súborov môžeme začleniť aj ďalšie pomocou direktívy <emphasis>Include</emphasis>. Dá sa pridať i viacero súborov naraz zadaním masky súborov. Do takýchto súborov môžeme umiestniť akúkoľvek direktívu. Zmeny v hlavných konfiguračných súboroch sa prejavia iba pri štarte alebo reštarte servera Apache2.
|
|
Translated by
Matthew East
|
|
|
|
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
|
|
|
|
Základné nastavenia
|
|
Translated by
Matthew East
|
|
|
|
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)
|
|
33.
|
|
|
The directives set for a virtual host only apply to that particular virtual host. If a directive is set server-wide and not defined within the virtual host settings, the default setting is used. For example, you can define a Webmaster email address and not define individual email addresses for each virtual host.
|
|
|
|
Direktívy nastavené pre virtuálnu stanicu sa vzťahujú iba na konkrétnu virtuálnu stanicu. Ak je direktíva nastavená pre celý server a nie je definovaná v nastaveniach virtuálnej stanice, použijú sa predvolené nastavenia. Napríklad, ak definujeme emailovú adresu Webmastera a nedefinujeme individuálne emailové adresy pre každú virtuálnu stanicu.
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/web-servers.xml:190(para)
|
|
34.
|
|
|
If you wish to configure a new virtual host or site, copy that file into the same directory with a name you choose. For example:
|
|
|
|
Ak chceme nakonfigurovať nový web alebo virtuálnu stanicu, skopírujeme nasledujúci súbor do toho istého priečinka pod iným názvom. Napríklad:
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/web-servers.xml:198(para)
|