diff options
author | Daniel Gruno <humbedooh@apache.org> | 2012-05-01 14:13:02 +0200 |
---|---|---|
committer | Daniel Gruno <humbedooh@apache.org> | 2012-05-01 14:13:02 +0200 |
commit | 1fbc52884eabb2084baa8f78fa0a1cf67b4c4c57 (patch) | |
tree | 9008f979bb8ce77840297696b07f038c0510c7cc /docs/manual/dns-caveats.xml | |
parent | Try to clarify what is matched in a rewrite rule as per bug #53080. (diff) | |
download | apache2-1fbc52884eabb2084baa8f78fa0a1cf67b4c4c57.tar.xz apache2-1fbc52884eabb2084baa8f78fa0a1cf67b4c4c57.zip |
Add syntax highlighting to this doc as well
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1332626 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/dns-caveats.xml')
-rw-r--r-- | docs/manual/dns-caveats.xml | 67 |
1 files changed, 31 insertions, 36 deletions
diff --git a/docs/manual/dns-caveats.xml b/docs/manual/dns-caveats.xml index c715450f10..2ff924b102 100644 --- a/docs/manual/dns-caveats.xml +++ b/docs/manual/dns-caveats.xml @@ -37,13 +37,13 @@ <section id="example"> <title>A Simple Example</title> - <example> - # This is a misconfiguration example, do not use on your server <br /> - <VirtualHost www.example.dom> <br /> - ServerAdmin webgirl@example.dom <br /> - DocumentRoot /www/example <br /> - </VirtualHost> - </example> + <highlight language="config"> +# This is a misconfiguration example, do not use on your server +<VirtualHost www.example.dom> + ServerAdmin webgirl@example.dom + DocumentRoot /www/example +</VirtualHost> + </highlight> <p>In order for the server to function properly, it absolutely needs to have two pieces of information about each virtual host: the @@ -59,13 +59,13 @@ <p>Suppose that <code>www.example.dom</code> has address 192.0.2.1. Then consider this configuration snippet:</p> - <example> - # This is a misconfiguration example, do not use on your server <br /> - <VirtualHost 192.0.2.1> <br /> - ServerAdmin webgirl@example.dom <br /> - DocumentRoot /www/example <br /> - </VirtualHost> - </example> + <highlight language="config"> +# This is a misconfiguration example, do not use on your server +<VirtualHost 192.0.2.1> + ServerAdmin webgirl@example.dom + DocumentRoot /www/example +</VirtualHost> + </highlight> <p>This time httpd needs to use reverse DNS to find the <code>ServerName</code> for this virtualhost. If that reverse @@ -78,13 +78,13 @@ <p>Here is a snippet that avoids both of these problems:</p> - <example> - <VirtualHost 192.0.2.1> <br /> - ServerName www.example.dom <br /> - ServerAdmin webgirl@example.dom <br /> - DocumentRoot /www/example <br /> - </VirtualHost> - </example> + <highlight language="config"> +<VirtualHost 192.0.2.1> + ServerName www.example.dom + ServerAdmin webgirl@example.dom + DocumentRoot /www/example +</VirtualHost> + </highlight> </section> <section id="denial"> @@ -92,21 +92,16 @@ <p>Consider this configuration snippet:</p> - <example> - <VirtualHost www.example1.dom><br /> - <indent> - ServerAdmin webgirl@example1.dom<br /> - DocumentRoot /www/example1<br /> - </indent> - </VirtualHost><br /> - <br /> - <VirtualHost www.example2.dom><br /> - <indent> - ServerAdmin webguy@example2.dom<br /> - DocumentRoot /www/example2<br /> - </indent> - </VirtualHost> - </example> + <highlight language="config"> +<VirtualHost www.example1.dom> + ServerAdmin webgirl@example1.dom + DocumentRoot /www/example1 +</VirtualHost> +<VirtualHost www.example2.dom> + ServerAdmin webguy@example2.dom + DocumentRoot /www/example2 +</VirtualHost> + </highlight> <p>Suppose that you've assigned 192.0.2.1 to <code>www.example1.dom</code> and 192.0.2.2 to |