|
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.
|
|
|
|
Ezeken kívül további beállítófájlok is felvehetők az <emphasis>Include</emphasis> direktíva használatával, ebben helyettesítő karakterek is használhatók több beállítófájl felvételére. A beállítófájlok bármelyikébe bármely direktíva elhelyezhető. Az elsődleges beállítófájl módosításai csak az Apache2 elindításakor vagy újraindításakor lépnek életbe.
|
|
Translated by
Gabor Kelemen
|
|
|
|
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
|
|
|
|
Alapbeállítások
|
|
Translated by
Gabor Kelemen
|
|
|
|
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.
|
|
|
|
Egy adott virtuális kiszolgálóra beállított direktívák csak az adott virtuális kiszolgálóra érvényesek. Ha egy direktíva meg van adva kiszolgálószinten, de a virtuális kiszolgáló beállításai közt nincs, akkor az alapértelmezett beállítás kerül felhasználásra. Megadhat például egy webmesteri e-mail címet, ekkor elhagyhatja ennek megadását az egyes virtuális kiszolgálókhoz.
|
|
Translated by
Gabor Kelemen
|
|
|
|
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:
|
|
|
|
Ha új virtuális kiszolgálót vagy webhelyet szeretne beállítani, másolja ezt a fájlt ugyanebbe a könyvtárba tetszőleges néven. Például:
|
|
Translated by
Gabor Kelemen
|
|
|
|
Located in
serverguide/C/web-servers.xml:198(para)
|
|
35.
|
|
|
sudo cp /etc/apache2/sites-available/000-default.conf /etc/apache2/sites-available/mynewsite.conf
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:204(command)
|
|
36.
|
|
|
Edit the new file to configure the new site using some of the directives described below.
|
|
|
|
Szerkessze az új fájlt az új webhely beállításához az alább leírt direktívák segítségével.
|
|
Translated by
Gabor Kelemen
|
|
|
|
Located in
serverguide/C/web-servers.xml:207(para)
|
|
37.
|
|
|
The <emphasis>ServerAdmin</emphasis> directive specifies the email address to be advertised for the server's administrator. The default value is webmaster@localhost. This should be changed to an email address that is delivered to you (if you are the server's administrator). If your website has a problem, Apache2 will display an error message containing this email address to report the problem to. Find this directive in your site's configuration file in /etc/apache2/sites-available.
|
|
|
|
A <emphasis>ServerAdmin</emphasis> direktíva megadja a kiszolgáló rendszergazdájaként közzétenni kívánt e-mail címet. Az alapértelmezett érték a webmaster@localhost. Ezt egy Önnek kézbesített e-mail címre kell cserélnie (ha Ön a kiszolgáló rendszergazdája). Ha a weboldalon probléma lép fel, az Apache2 megjelenít egy hibaüzenetet, amely ezt a címet adja meg a hiba bejelentéséhez. Ez a direktíva az /etc/apache2/sites-available alatti beállítófájljában található meg.
|
|
Translated by
Gabor Kelemen
|
|
|
|
Located in
serverguide/C/web-servers.xml:214(para)
|