|
52.
|
|
|
The <emphasis>DirectoryIndex</emphasis> is the default page served by the server when a user requests an index of a directory by specifying a forward slash (/) at the end of the directory name.
|
|
|
|
Der <emphasis>DirectoryIndex</emphasis> ist die vorgegebene Seite, die vom Server bereitgestellt wird, wenn ein Benutzer eine Übersicht eines Ordners durch Angabe eines Schrägstriches (/) am Ende eines Ordnernamens anfordert.
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/web-servers.xml:322(para)
|
|
53.
|
|
|
For example, when a user requests the page http://www.example.com/this_directory/, he or she will get either the DirectoryIndex page if it exists, a server-generated directory list if it does not and the Indexes option is specified, or a Permission Denied page if neither is true. The server will try to find one of the files listed in the DirectoryIndex directive and will return the first one it finds. If it does not find any of these files and if <emphasis>Options Indexes</emphasis> is set for that directory, the server will generate and return a list, in HTML format, of the subdirectories and files in the directory. The default value, found in <filename>/etc/apache2/mods-available/dir.conf</filename> is "index.html index.cgi index.pl index.php index.xhtml index.htm". Thus, if Apache2 finds a file in a requested directory matching any of these names, the first will be displayed.
|
|
|
|
Wenn beispielsweise ein Benutzer die Seite http://www.example.com/this_directory/ anfordert, wird er oder sie entweder die Verzeichnisindex-Seite - oder wenn diese nicht existiert, aber die Indexoption angegeben ist - eine vom Server generierte Verzeichnisliste, oder eine »Zugriff Verweigert«-Seite sehen, falls beides nicht zutrifft. Der Server wird versuchen, eine der Dateien zu finden, die in der DirectoryIndex-Direktive aufgelistet sind und wird die erste die er findet zurückgeben. Wenn er keine dieser Dateien findet und <emphasis>Options Indexes</emphasis> für dieses Verzeichnis gesetzt ist, wird der Server eine Liste der Unterverzeichnisse und Dateien in dem Verzeichnis im HTML-Format erstellen und zurückgeben. Der standardmäßige Wert in <filename>/etc/apache2/mods-available/dir.conf</filename> ist »index.html index.cgi index.pl index.php index.xhtml index.htm«. Wenn Apache2 eine Datei, deren Namen mit den obigen übereinstimmt, in einem angeforderten Verzeichnis findet, wird dadurch die erste angezeigt.
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/web-servers.xml:329(para)
|
|
54.
|
|
|
The <emphasis>ErrorDocument</emphasis> directive allows you to specify a file for Apache2 to use for specific error events. For example, if a user requests a resource that does not exist, a 404 error will occur. By default, Apache2 will simply return a HTTP 404 Return code. Read <filename>/etc/apache2/conf-available/localized-error-pages.conf</filename> for detailed instructions for using ErrorDocument, including locations of example files.
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:350(para)
|
|
55.
|
|
|
By default, the server writes the transfer log to the file <filename>/var/log/apache2/access.log</filename>. You can change this on a per-site basis in your virtual host configuration files with the <emphasis>CustomLog</emphasis> directive, or omit it to accept the default, specified in <filename> /etc/apache2/conf-available/other-vhosts-access-log.conf</filename>. You may also specify the file to which errors are logged, via the <emphasis>ErrorLog</emphasis> directive, whose default is <filename>/var/log/apache2/error.log</filename>. These are kept separate from the transfer logs to aid in troubleshooting problems with your Apache2 server. You may also specify the <emphasis>LogLevel</emphasis> (the default value is "warn") and the <emphasis>LogFormat</emphasis> (see <filename> /etc/apache2/apache2.conf</filename> for the default value).
|
|
|
|
(no translation yet)
|
|
|
|
Located in
serverguide/C/web-servers.xml:360(para)
|
|
56.
|
|
|
Some options are specified on a per-directory basis rather than per-server. <emphasis>Options</emphasis> is one of these directives. A Directory stanza is enclosed in XML-like tags, like so:
|
|
|
|
Manche Optionen gelten nur auf Ordner-Ebene und nicht auf Server-Ebene. <emphasis>Options</emphasis> ist so eine Anweisung. Ein Verzeichnisabsatz ist mit XML-ähnlichen Kennzeichen umklammert, zum Beispiel so:
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/web-servers.xml:375(para)
|
|
57.
|
|
|
![](/@@/translation-newline)
<Directory /var/www/html/mynewsite> ![](/@@/translation-newline)
... ![](/@@/translation-newline)
</Directory>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
![](/@@/translation-newline)
<Verzeichnis /var/www/html/mynewsite> ![](/@@/translation-newline)
... ![](/@@/translation-newline)
</Verzeichnis>
|
|
Translated by
Torsten Franz
|
|
Reviewed by
Phillip Sz
|
|
|
|
Located in
serverguide/C/web-servers.xml:381(programlisting)
|
|
58.
|
|
|
The <emphasis>Options</emphasis> directive within a Directory stanza accepts one or more of the following values (among others), separated by spaces:
|
|
|
|
Die <emphasis>Options</emphasis>-Anweisung in einem Ordnerabsatz kann, mit Leerzeichen getrennt, einen oder mehrere der folgenden Werte (neben weiteren) enthalten:
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/web-servers.xml:387(para)
|
|
59.
|
|
|
Most files should not be executed as CGI scripts. This would be very dangerous. CGI scripts should kept in a directory separate from and outside your DocumentRoot, and only this directory should have the ExecCGI option set. This is the default, and the default location for CGI scripts is <filename>/usr/lib/cgi-bin</filename>.
|
|
|
|
Die meisten Dateien sollten nicht als CGI-Skript ausgeführt werden, da dies sehr gefährlich wäre. CGI-Skripte sollten in einem Ordner außerhalb Ihres DocumentRoot und von diesem getrennt aufbewahrt werden und nur dieser Ordner darf die ExecCGI-Option aktiviert haben. Das ist die Vorgabeeinstellung, der Vorgabeort für CGI-Skripte ist <filename>/usr/lib/cgi-bin</filename>.
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/web-servers.xml:399(para)
|
|
60.
|
|
|
<emphasis role="bold">ExecCGI</emphasis> - Allow execution of CGI scripts. CGI scripts are not executed if this option is not chosen. <placeholder-1/>
|
|
|
|
<emphasis role="bold">ExecCGI</emphasis> - Erlaubt die Ausführung von CGI-Skripten. CGI-Skripte werden nicht ausgeführt, wenn diese Option nicht gesetzt ist. <placeholder-1/>
|
|
Translated by
Matthew East
|
|
|
|
Located in
serverguide/C/web-servers.xml:394(para)
|
|
61.
|
|
|
<emphasis role="bold">Includes</emphasis> - Allow server-side includes. Server-side includes allow an HTML file to <emphasis> include</emphasis> other files. See <ulink url="https://help.ubuntu.com/community/ServerSideIncludes">Apache SSI documentation (Ubuntu community)</ulink> for more information.
|
|
|
|
<emphasis role=\"bold\">Includes</emphasis> - Erlaubt die Verwendung von »server-side includes». »Server-side includes« ermöglichen es, in einer HTML-Datei andere Dateien einzufügen. Siehe <ulink url=\"https://help.ubuntu.com/community/ServerSideIncludes\">Apache SSI Dokumentation (Ubuntu-Community)</ulink> für weitere Informationen.
|
|
Translated and reviewed by
Phillip Sz
|
|
|
|
Located in
serverguide/C/web-servers.xml:410(para)
|