diff options
author | Daniel Gruno <humbedooh@apache.org> | 2012-04-26 16:38:55 +0200 |
---|---|---|
committer | Daniel Gruno <humbedooh@apache.org> | 2012-04-26 16:38:55 +0200 |
commit | 96a04aeb015abf35c441123578f0a632301f45ed (patch) | |
tree | 090c6a8440a10a660e31d06701e7cd6f8da8c336 /docs/manual/vhosts/name-based.xml | |
parent | Allow for multiple newlines to be ignored at start and finish (diff) | |
download | apache2-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.xml | 33 |
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> - <VirtualHost *:80><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> - </VirtualHost><br /> - <br /> - <VirtualHost *:80><br /> - <indent>ServerName other.example.com<br /> - DocumentRoot /www/otherdomain<br /> - </indent> - </VirtualHost><br /> - </example> + <highlight language="config"> +<VirtualHost *:80> + # This first-listed virtual host is also the default for *:80 + ServerName www.example.com + ServerAlias example.com + DocumentRoot /www/domain +</VirtualHost> + +<VirtualHost *:80> +ServerName other.example.com + DocumentRoot /www/otherdomain +</VirtualHost> + </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 |