aboutsummaryrefslogtreecommitdiff
path: root/doc/guide.tex
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2008-03-04 10:36:57 +0000
committerBadlop <badlop@process-one.net>2008-03-04 10:36:57 +0000
commit735b34e7b7793342fcde3242196871876c4e1009 (patch)
treef43a49e4edf99448b27289ae5d378784d8f93c9b /doc/guide.tex
parent* doc/guide.tex: mod_announce recommends, but doesn't require (diff)
* doc/guide.tex: Improve documentation of host_config
add (EJAB-544) * doc/guide.html: Likewise * src/ejabberd.cfg.example: Likewise * src/ejabberd_config.erl: Likewise SVN Revision: 1219
Diffstat (limited to 'doc/guide.tex')
-rw-r--r--doc/guide.tex17
1 files changed, 7 insertions, 10 deletions
diff --git a/doc/guide.tex b/doc/guide.tex
index cfc0eeef8..56a2521e0 100644
--- a/doc/guide.tex
+++ b/doc/guide.tex
@@ -591,22 +591,20 @@ Examples:
\end{verbatim}
\end{itemize}
-If you have several virtual hosts,
-and you want to define options such as \term{modules}
-with values specific for some virtual host,
-instead of defining each option with the syntax
+To define specific ejabberd modules in a virtual host,
+you can define the global \term{modules} option with the common modules,
+and later add specific modules to certain virtual hosts.
+To accomplish that, instead of defining each option in \term{host\_config} with the syntax
\begin{verbatim}
{<option-name>, <option-value>}
\end{verbatim}
-you must use this syntax:
+use this syntax:
\begin{verbatim}
{{add, <option-name>}, <option-value>}
\end{verbatim}
-Example:
-\begin{itemize}
- \item In this example three virtual hosts have some similar modules, but there are also
- other different modules for some specific virtual hosts:
+In this example three virtual hosts have some similar modules, but there are also
+other different modules for some specific virtual hosts:
\begin{verbatim}
% This ejabberd server has three vhosts:
{hosts, ["one.example.org", "two.example.org", "three.example.org"]}.
@@ -635,7 +633,6 @@ Example:
{mod_echo, [{host, "mirror.two.example.org"}]}
]}]}.
\end{verbatim}
-\end{itemize}
\subsection{Listening Ports}
\label{listened}