summaryrefslogtreecommitdiffstats
path: root/docs/manual/vhosts/mass.xml
diff options
context:
space:
mode:
authorRich Bowen <rbowen@apache.org>2010-04-06 15:04:03 +0200
committerRich Bowen <rbowen@apache.org>2010-04-06 15:04:03 +0200
commit5342738ffc9773e209ea984a2b05e12335bc2af2 (patch)
tree955e2925e9de0dd0bfd815c7b9dd66ad9845cd6a /docs/manual/vhosts/mass.xml
parentTranslation conversion updates. (diff)
downloadapache2-5342738ffc9773e209ea984a2b05e12335bc2af2.tar.xz
apache2-5342738ffc9773e209ea984a2b05e12335bc2af2.zip
Make the example match the descriptive text about the example.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@931138 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/vhosts/mass.xml')
-rw-r--r--docs/manual/vhosts/mass.xml24
1 files changed, 14 insertions, 10 deletions
diff --git a/docs/manual/vhosts/mass.xml b/docs/manual/vhosts/mass.xml
index 41984cfa23..29d8cd4f16 100644
--- a/docs/manual/vhosts/mass.xml
+++ b/docs/manual/vhosts/mass.xml
@@ -133,8 +133,8 @@ NameVirtualHost 111.22.33.44
configuration, this is used by the core module when
mapping URIs to filenames, but when the server is configured to
do dynamic virtual hosting, that job must be taken over by another
- module (either <code>mod_vhost_alias</code> or
- <code>mod_rewrite</code>), which has a different way of doing
+ module (either <module>mod_vhost_alias</module> or
+ <module>mod_rewrite</module>), which has a different way of doing
the mapping. Neither of these modules is responsible for
setting the <code>DOCUMENT_ROOT</code> environment variable so
if any CGIs or SSI documents make use of it, they will get a
@@ -148,7 +148,7 @@ mod_vhost_alias</title>
<p>This extract from <code>httpd.conf</code> implements the
virtual host arrangement outlined in the <a
href="#motivation">Motivation</a> section above
- using <code>mod_vhost_alias</code>.</p>
+ using <module>mod_vhost_alias</module>.</p>
<example>
# get the server name from the Host: header<br />
@@ -175,21 +175,24 @@ examples.</p>
</section>
-<section id="homepages"><title>A Virtually Hosted Homepages System</title>
+<section id="homepages"><title>Simplified Dynamic Virtual Hosts</title>
<p>This is an adjustment of the above system, tailored for an
ISP's homepages server. Using a slightly more complicated
configuration, we can select substrings of the server name to
use in the filename so that, for example, the documents for
<code>www.user.isp.com</code> are found in
- <code>/home/user/</code>. It uses a single <code>cgi-bin</code>
+ <code>/home/user/www</code>. It uses a single <code>cgi-bin</code>
directory instead of one per virtual host.</p>
<example>
-# all the preliminary stuff is the same as above, then<br />
+UseCanonicalName Off<br />
+<br />
+LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br />
+CustomLog logs/access_log vcommon<br />
<br />
# include part of the server name in the filenames<br />
-VirtualDocumentRoot /www/hosts/%2/docs<br />
+VirtualDocumentRoot /home/%2/www<br />
<br />
# single cgi-bin directory<br />
ScriptAlias /cgi-bin/ /www/std-cgi/<br />
@@ -209,8 +212,9 @@ ScriptAlias /cgi-bin/ /www/std-cgi/<br />
scope of the various virtual hosting configurations. For
example, you could have one IP address for general customers' homepages,
and another for commercial customers, with the following setup.
- This can, of course, be combined with conventional
- <code>&lt;VirtualHost&gt;</code> configuration sections.</p>
+ This can be combined with conventional
+ <code>&lt;VirtualHost&gt;</code> configuration sections, as shown
+ below.</p>
<example>
UseCanonicalName Off<br />
@@ -260,7 +264,7 @@ LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon<br />
<directive module="core">ServerName</directive> directive, the reverse
DNS of the relevant IP will be used instead.
If this is not the server name you
- wish to use, a bogus entry (<code>ServerName
+ wish to use, a bogus entry (eg. <code>ServerName
none.example.com</code>) can be added to get around this
behaviour.</p>
</note>