summaryrefslogtreecommitdiffstats
path: root/docs/manual/vhosts/name-based.xml
diff options
context:
space:
mode:
authorDaniel Gruno <humbedooh@apache.org>2012-04-26 16:38:55 +0200
committerDaniel Gruno <humbedooh@apache.org>2012-04-26 16:38:55 +0200
commit96a04aeb015abf35c441123578f0a632301f45ed (patch)
tree090c6a8440a10a660e31d06701e7cd6f8da8c336 /docs/manual/vhosts/name-based.xml
parentAllow for multiple newlines to be ignored at start and finish (diff)
downloadapache2-96a04aeb015abf35c441123578f0a632301f45ed.tar.xz
apache2-96a04aeb015abf35c441123578f0a632301f45ed.zip
syntax updates
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1330878 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--docs/manual/vhosts/name-based.xml33
1 files changed, 15 insertions, 18 deletions
diff --git a/docs/manual/vhosts/name-based.xml b/docs/manual/vhosts/name-based.xml
index 63ae0efab2..2b67a0bc4c 100644
--- a/docs/manual/vhosts/name-based.xml
+++ b/docs/manual/vhosts/name-based.xml
@@ -127,22 +127,19 @@
<code>other.example.com</code>, which points at the same IP address.
Then you simply add the following to <code>httpd.conf</code>:</p>
- <example>
- &lt;VirtualHost *:80&gt;<br />
- <indent>
- # This first-listed virtual host is also the default for *:80
- ServerName www.example.com<br />
- ServerAlias example.com <br />
- DocumentRoot /www/domain<br />
- </indent>
- &lt;/VirtualHost&gt;<br />
- <br />
- &lt;VirtualHost *:80&gt;<br />
- <indent>ServerName other.example.com<br />
- DocumentRoot /www/otherdomain<br />
- </indent>
- &lt;/VirtualHost&gt;<br />
- </example>
+ <highlight language="config">
+&lt;VirtualHost *:80&gt;
+ # This first-listed virtual host is also the default for *:80
+ ServerName www.example.com
+ ServerAlias example.com
+ DocumentRoot /www/domain
+&lt;/VirtualHost&gt;
+
+&lt;VirtualHost *:80&gt;
+ServerName other.example.com
+ DocumentRoot /www/otherdomain
+&lt;/VirtualHost&gt;
+ </highlight>
<p>You can alternatively specify an explicit IP address in place of the
<code>*</code> in <directive type="section" module="core"
@@ -159,9 +156,9 @@
the listed names are other names which people can use to see that same
web site:</p>
- <example>
+ <highlight language="config">
ServerAlias example.com *.example.com
- </example>
+ </highlight>
<p>then requests for all hosts in the <code>example.com</code> domain will
be served by the <code>www.example.com</code> virtual host. The wildcard