diff options
author | Badlop <badlop@process-one.net> | 2009-11-23 19:11:37 +0000 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2009-11-23 19:11:37 +0000 |
commit | ea4f379bd58f12a75ddc19f40148eb6747827c13 (patch) | |
tree | 4ceb6d91f7caec1f9f3bb6ba77c0163cc632b6fe /doc/guide.tex | |
parent | Generate main XML file also when exporting only a vhost (EJAB-1098) (diff) |
Fix explanation of option content_types. Reorder options.
SVN Revision: 2755
Diffstat (limited to 'doc/guide.tex')
-rw-r--r-- | doc/guide.tex | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/doc/guide.tex b/doc/guide.tex index 32b8f622a..16d1ee2d7 100644 --- a/doc/guide.tex +++ b/doc/guide.tex @@ -2849,20 +2849,16 @@ Options: \titem{\{accesslog, Path\}} \ind{options!accesslog} File to log accesses using an Apache-like format. No log will be recorded if this option is not specified. - \titem{\{custom\_headers, [ \{Name, Value\}, ...]\}} \ind{options!customheaders} - Indicate custom HTTP headers to be included in all responses. - Default value is: \term{[]} \titem{\{directory\_indices, [Index, ...]\}} \ind{options!directoryindices} Indicate one or more directory index files, similarly to Apache's DirectoryIndex variable. When a web request hits a directory instead of a regular file, those directory indices are looked in order, and the first one found is returned. - %B \titem{content\_types} \ind{options!contenttypes} - %M \titem{\{content\_types, \{Extension, Type\} \}} \ind{options!contenttypes} - %B \titem{\{content\_types, [ Extension, Type, ... ]\}} \ind{options!contenttypes} - %B \titem{\{content\_types, [ {Extension, Type}, ... ]\}} \ind{options!contenttypes} - %M \titem{\{content\_types, [ \{Extension, Type\}, ... ]\}} \ind{options!contenttypes} - Specify a mapping of extensions to content types. + \titem{\{custom\_headers, [ \{Name, Value\}, ...]\}} \ind{options!customheaders} + Indicate custom HTTP headers to be included in all responses. + Default value is: \term{[]} + \titem{\{content\_types, [ \{Name, Type\}, ...]\}} \ind{options!contenttypes} + Specify mappings of extension to content type. There are several content types already defined, with this option you can add new definitions, modify or delete existing ones. To delete an existing definition, simply define it with a value: `undefined'. @@ -2885,13 +2881,13 @@ To use this module you must enable it: {docroot, "/var/www"}, {accesslog, "/var/log/ejabberd/access.log"}, {directory_indices, ["index.html", "main.htm"]}, + {custom_headers, [{"X-Powered-By", "Erlang/OTP"}, + {"X-Fry", "It's a widely-believed fact!"} + ]}, {content_types, [{".ogg", "audio/ogg"}, {".png", "image/png"}, {".jpg", undefined} ]}, - {custom_headers, [{"X-Powered-By", "Erlang/OTP"}, - {"X-Fry", "It's a widely-believed fact!"} - ]}, {default_content_type, "text/html"} ] }, |