[deployment-guide/comm-rel: 472/727] Updated the AddIconByType directive description.

Jaromir Hradilek jhradile at fedoraproject.org
Tue Oct 19 13:04:32 UTC 2010


commit f8b47c03330b1fa14a6a3e5beef570798b5d5fd8
Author: Jaromir Hradilek <jhradile at redhat.com>
Date:   Tue Aug 24 14:46:50 2010 +0200

    Updated the AddIconByType directive description.

 en-US/The_Apache_HTTP_Server.xml |   30 ++++++++++++++++--------------
 1 files changed, 16 insertions(+), 14 deletions(-)
---
diff --git a/en-US/The_Apache_HTTP_Server.xml b/en-US/The_Apache_HTTP_Server.xml
index c5e9ffa..65b8d29 100644
--- a/en-US/The_Apache_HTTP_Server.xml
+++ b/en-US/The_Apache_HTTP_Server.xml
@@ -388,21 +388,23 @@ AddIcon /icons/blank.png ^^BLANKICON^^</screen>
             </example>
           </listitem>
         </varlistentry>
+        <varlistentry>
+          <term><option>AddIconByType</option></term>
+          <listitem>
+            <para>
+              The <option>AddIconByType</option> directive allows you to specify an icon to be displayed for a particular media type in server-generated directory listings. It takes the following form:
+            </para>
+            <screen>AddIconByType <replaceable>icon</replaceable> <replaceable>media-type</replaceable>...</screen>
+            <para>
+              The <replaceable>icon</replaceable> option is a path to an existing icon. The <replaceable>media-type</replaceable> option has to be a valid MIME type (such as <literal>text/html</literal>, <literal>image/png</literal>, <literal>application/pdf</literal> etc.), or a wildcard expression (such as <literal>text/*</literal>, <literal>image/*</literal>, or <literal>application/*</literal>).
+            </para>
+            <example id="example-apache-httpdconf-addiconbytype">
+              <title>Using the <option>AddIconByType</option> directive</title>
+              <screen>AddIconByType /icons/video.png video/*</screen>
+            </example>
+          </listitem>
+        </varlistentry>
       </variablelist>
-      <formalpara id="s2-apache-addiconbytype">
-        <title>AddIconByType</title>
-        <indexterm>
-          <primary><command>AddIconByType</command></primary>
-          <secondary>Apache configuration directive</secondary>
-        </indexterm>
-        <indexterm>
-          <primary>configuration directives, Apache</primary>
-          <secondary><command>AddIconByType</command></secondary>
-        </indexterm>
-        <para>
-          This directive names icons which are displayed next to files with MIME types in server generated directory listings. For example, the server shows the icon <filename>text.gif</filename> next to files with a mime-type of <computeroutput>text</computeroutput>, in server generated directory listings.
-        </para>
-      </formalpara>
       <formalpara id="s2-apache-addlanguage">
         <title>AddLanguage</title>
         <indexterm>


More information about the docs-commits mailing list