aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/guide.html6
-rw-r--r--doc/guide.tex6
2 files changed, 12 insertions, 0 deletions
diff --git a/doc/guide.html b/doc/guide.html
index 7bd7457e7..0b647aae9 100644
--- a/doc/guide.html
+++ b/doc/guide.html
@@ -2155,6 +2155,9 @@ Directory to serve the files.
</DD><DT CLASS="dt-description"><B><TT>{accesslog, Path}</TT></B></DT><DD CLASS="dd-description">
File to log accesses using an Apache-like format.
No log will be recorded if this option is not specified.
+</DD><DT CLASS="dt-description"><B><TT>{custom_headers, [ {Name, Value}, ...]}</TT></B></DT><DD CLASS="dd-description">
+Indicate custom HTTP headers to be included in all responses.
+Default value is: <TT>[]</TT>
</DD><DT CLASS="dt-description"><B><TT>{directory_indices, [Index, ...]}</TT></B></DT><DD CLASS="dd-description">
Indicate one or more directory index files, similarly to Apache&#X2019;s
DirectoryIndex variable. When a web request hits a directory
@@ -2184,6 +2187,9 @@ To use this module you must enable it:
{".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"}
]
},
diff --git a/doc/guide.tex b/doc/guide.tex
index 6a967ae2c..7e8143a75 100644
--- a/doc/guide.tex
+++ b/doc/guide.tex
@@ -2849,6 +2849,9 @@ 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
@@ -2886,6 +2889,9 @@ To use this module you must enable it:
{".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"}
]
},