From: Joshua Slive Date: Mon, 4 Apr 2005 18:55:18 +0000 (+0000) Subject: Put all the stuff related to MIME-types in the same general X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cd94dd2ffbdf89dc7617544e3d2481bab9d673d;p=thirdparty%2Fapache%2Fhttpd.git Put all the stuff related to MIME-types in the same general area and move the EnableSendFile/EnableMMAP directives down to the bottom in the "fix broken stuff" section. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/simple-conf@160085 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/conf/httpd.conf.in b/docs/conf/httpd.conf.in index 5b12158c302..4614440587d 100644 --- a/docs/conf/httpd.conf.in +++ b/docs/conf/httpd.conf.in @@ -208,34 +208,6 @@ DocumentRoot "@exp_htdocsdir@" Deny from all - - # - # TypesConfig describes where the mime.types file (or equivalent) is - # to be found. - # - TypesConfig @rel_sysconfdir@/mime.types - - -# -# DefaultType is the default MIME type the server will use for a document -# if it cannot otherwise determine one, such as from filename extensions. -# If your server contains mostly text or HTML documents, "text/plain" is -# a good value. If most of your content is binary, such as applications -# or images, you may want to use "application/octet-stream" instead to -# keep browsers from trying to display binary files as though they are -# text. -# -DefaultType text/plain - -# -# The mod_mime_magic module allows the server to use various hints from the -# contents of the file itself to determine its type. The MIMEMagicFile -# directive tells the module where the hint definitions are located. -# - - MIMEMagicFile @rel_sysconfdir@/magic - - # # HostnameLookups: Log the names of clients or just their IP addresses # e.g., www.apache.org (on) or 204.62.129.132 (off). @@ -246,16 +218,6 @@ DefaultType text/plain # HostnameLookups Off -# EnableMMAP and EnableSendfile: On systems that support it, -# memory-mapping or the sendfile syscall is used to deliver -# files. This usually improves server performance, but must -# be turned off when serving from networked-mounted -# filesystems or if support for these functions is otherwise -# broken on your system. -# -#EnableMMAP off -#EnableSendfile off - # # ErrorLog: The location of the error log file. # If you do not specify an ErrorLog directive within a @@ -349,11 +311,27 @@ LogLevel warn Allow from all +# +# DefaultType is the default MIME type the server will use for a document +# if it cannot otherwise determine one, such as from filename extensions. +# If your server contains mostly text or HTML documents, "text/plain" is +# a good value. If most of your content is binary, such as applications +# or images, you may want to use "application/octet-stream" instead to +# keep browsers from trying to display binary files as though they are +# text. +# +DefaultType text/plain + + # + # TypesConfig points to the file containing the list of mappings from + # filename extension to MIME-type. + # + TypesConfig @rel_sysconfdir@/mime.types # # AddType allows you to add to or override the MIME configuration - # file mime.types for specific file types. + # file specified in TypesConfig for specific file types. # #AddType application/x-gzip .tgz # @@ -406,6 +384,15 @@ LogLevel warn #AddOutputFilter INCLUDES .shtml +# +# The mod_mime_magic module allows the server to use various hints from the +# contents of the file itself to determine its type. The MIMEMagicFile +# directive tells the module where the hint definitions are located. +# + + MIMEMagicFile @rel_sysconfdir@/magic + + # # Action lets you define media types that will execute a script whenever # a matching file is called. This eliminates the need for repeated URL @@ -450,6 +437,15 @@ LogLevel warn BrowserMatch "^XML Spy" redirect-carefully +# EnableMMAP and EnableSendfile: On systems that support it, +# memory-mapping or the sendfile syscall is used to deliver +# files. This usually improves server performance, but must +# be turned off when serving from networked-mounted +# filesystems or if support for these functions is otherwise +# broken on your system. +# +#EnableMMAP off +#EnableSendfile off ### Section 3: Supplemental configuration #