|
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:
|
|
|
|
Некоторые опции указываются для каталога, а не для сервера. Одна из таких директив — <emphasis>Options</emphasis>. Группа строк Directory заключена в теги XML следующим образом:
|
|
Translated and reviewed by
Aleksey Kabanov
|
|
|
|
Located in
serverguide/C/web-servers.xml:375(para)
|
|
57.
|
|
|
<Directory /var/www/html/mynewsite>
...
</Directory>
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
<Directory /var/www/html/mynewsite>
...
</Directory>
|
|
Translated and reviewed by
Anton Patsev
|
|
|
|
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:
|
|
|
|
Директива <emphasis>Options</emphasis> внутри группы строк Directory может принимать одно или несколько из следующих значений (помимо прочих), разделяемых пробелом:
|
|
Translated and reviewed by
Aleksey Kabanov
|
|
|
|
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>.
|
|
|
|
Большинство файлов не должны запускаться как CGI скрипты, так как могут создавать серьезную опасность. CGI скрипты необходимо держать отдельно и вне вашего DocumentRoot, и только этот каталог должен иметь установленное право ExecCGI. По умолчанию местоположение скриптов CGI — <filename>/usr/lib/cgi-bin</filename>.
|
|
Translated and reviewed by
Aleksey Kabanov
|
|
|
|
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> — разрешает запуск CGI-скриптов. CGI-скрипты не будут запускаться, если эта опция не установлена.
|
|
Translated and reviewed by
Anton Patsev
|
|
|
|
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> — разрешает расширения на стороне сервера. Расширения на стороне сервера позволяют HTML-файлу <emphasis> включать в себя</emphasis> другие файлы. Смотрите <ulink url="https://help.ubuntu.com/community/ServerSideIncludes">документацию Apache SSI (сообщества Ubuntu)</ulink> для получения дополнительной информации.
|
|
Translated and reviewed by
Aleksey Kabanov
|
|
|
|
Located in
serverguide/C/web-servers.xml:410(para)
|
|
62.
|
|
|
<emphasis role="bold">IncludesNOEXEC</emphasis> - Allow server-side includes, but disable the <emphasis>#exec</emphasis> and <emphasis>#include</emphasis> commands in CGI scripts.
|
|
|
|
<emphasis role="bold">IncludesNOEXEC</emphasis> — разрешает использовать расширения на стороне сервера, но отключает команды <emphasis>#exec</emphasis> и <emphasis>#include</emphasis> в CGI скриптах.
|
|
Translated and reviewed by
Aleksey Kabanov
|
|
|
|
Located in
serverguide/C/web-servers.xml:419(para)
|
|
63.
|
|
|
For security reasons, this should usually not be set, and certainly should not be set on your DocumentRoot directory. Enable this option carefully on a per-directory basis only if you are certain you want users to see the entire contents of the directory.
|
|
|
|
Из соображений безопасности обычно эта опция не устанавливается и, естественно, не должна устанавливаться для каталога DocumentRoot. Включайте эту опцию только для отдельных каталогов и только в том случае, если уверены, что хотите, чтобы пользователи могли просматривать всё содержимое каталога.
|
|
Translated and reviewed by
Aleksey Kabanov
|
|
|
|
Located in
serverguide/C/web-servers.xml:431(para)
|