]> granicus.if.org Git - apache/commitdiff
Add syntax highlighting to this doc as well
authorDaniel Gruno <humbedooh@apache.org>
Tue, 1 May 2012 12:13:02 +0000 (12:13 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Tue, 1 May 2012 12:13:02 +0000 (12:13 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1332626 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/dns-caveats.html.en
docs/manual/dns-caveats.xml

index 7b8ed2d9e79aa8aec1073a61b878ee536c67d96b..2e4e3444d6e1b38bc4e54a3c86189feea6cdd486 100644 (file)
 <h2><a name="example" id="example">A Simple Example</a></h2>
     
 
-    <div class="example"><p><code>
-      # This is a misconfiguration example, do not use on your server <br />
-      &lt;VirtualHost www.example.dom&gt; <br />
-      ServerAdmin webgirl@example.dom <br />
-      DocumentRoot /www/example <br />
-      &lt;/VirtualHost&gt;
-    </code></p></div>
+    <pre class="prettyprint lang-config">
+# This is a misconfiguration example, do not use on your server
+&lt;VirtualHost www.example.dom&gt;
+  ServerAdmin webgirl@example.dom
+  DocumentRoot /www/example
+&lt;/VirtualHost&gt;
+    </pre>
+
 
     <p>In order for the server to function properly, it absolutely needs
     to have two pieces of information about each virtual host: the
     <p>Suppose that <code>www.example.dom</code> has address 192.0.2.1.
     Then consider this configuration snippet:</p>
 
-    <div class="example"><p><code>
-      # This is a misconfiguration example, do not use on your server <br />
-      &lt;VirtualHost 192.0.2.1&gt; <br />
-      ServerAdmin webgirl@example.dom <br />
-      DocumentRoot /www/example <br />
-      &lt;/VirtualHost&gt;
-    </code></p></div>
+    <pre class="prettyprint lang-config">
+# This is a misconfiguration example, do not use on your server
+&lt;VirtualHost 192.0.2.1&gt;
+  ServerAdmin webgirl@example.dom
+  DocumentRoot /www/example
+&lt;/VirtualHost&gt;
+    </pre>
+
 
     <p>This time httpd needs to use reverse DNS to find the
     <code>ServerName</code> for this virtualhost. If that reverse
 
     <p>Here is a snippet that avoids both of these problems:</p>
 
-    <div class="example"><p><code>
-      &lt;VirtualHost 192.0.2.1&gt; <br />
-      ServerName www.example.dom <br />
-      ServerAdmin webgirl@example.dom <br />
-      DocumentRoot /www/example <br />
-      &lt;/VirtualHost&gt;
-    </code></p></div>
+    <pre class="prettyprint lang-config">
+&lt;VirtualHost 192.0.2.1&gt;
+  ServerName www.example.dom
+  ServerAdmin webgirl@example.dom
+  DocumentRoot /www/example
+&lt;/VirtualHost&gt;
+    </pre>
+
   </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
 <div class="section">
 <h2><a name="denial" id="denial">Denial of Service</a></h2>
 
     <p>Consider this configuration snippet:</p>
 
-    <div class="example"><p><code>
-      &lt;VirtualHost www.example1.dom&gt;<br />
-      <span class="indent">
-        ServerAdmin webgirl@example1.dom<br />
-        DocumentRoot /www/example1<br />
-      </span>
-      &lt;/VirtualHost&gt;<br />
-      <br />
-      &lt;VirtualHost www.example2.dom&gt;<br />
-      <span class="indent">
-        ServerAdmin webguy@example2.dom<br />
-        DocumentRoot /www/example2<br />
-      </span>
-      &lt;/VirtualHost&gt;
-    </code></p></div>
+    <pre class="prettyprint lang-config">
+&lt;VirtualHost www.example1.dom&gt;
+  ServerAdmin webgirl@example1.dom
+  DocumentRoot /www/example1
+&lt;/VirtualHost&gt;
+&lt;VirtualHost www.example2.dom&gt;
+  ServerAdmin webguy@example2.dom
+  DocumentRoot /www/example2
+&lt;/VirtualHost&gt;
+    </pre>
+
 
     <p>Suppose that you've assigned 192.0.2.1 to
     <code>www.example1.dom</code> and 192.0.2.2 to
index c715450f10cd897a340eeb3a05d5ff85d443972d..2ff924b102888c5197df895e38f4dbbe779eda33 100644 (file)
   <section id="example">
     <title>A Simple Example</title>
 
-    <example>
-      # This is a misconfiguration example, do not use on your server <br />
-      &lt;VirtualHost www.example.dom&gt; <br />
-      ServerAdmin webgirl@example.dom <br />
-      DocumentRoot /www/example <br />
-      &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+# This is a misconfiguration example, do not use on your server
+&lt;VirtualHost www.example.dom&gt;
+  ServerAdmin webgirl@example.dom
+  DocumentRoot /www/example
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>In order for the server to function properly, it absolutely needs
     to have two pieces of information about each virtual host: the
     <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 />
-      &lt;VirtualHost 192.0.2.1&gt; <br />
-      ServerAdmin webgirl@example.dom <br />
-      DocumentRoot /www/example <br />
-      &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+# This is a misconfiguration example, do not use on your server
+&lt;VirtualHost 192.0.2.1&gt;
+  ServerAdmin webgirl@example.dom
+  DocumentRoot /www/example
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>This time httpd needs to use reverse DNS to find the
     <code>ServerName</code> for this virtualhost. If that reverse
 
     <p>Here is a snippet that avoids both of these problems:</p>
 
-    <example>
-      &lt;VirtualHost 192.0.2.1&gt; <br />
-      ServerName www.example.dom <br />
-      ServerAdmin webgirl@example.dom <br />
-      DocumentRoot /www/example <br />
-      &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+&lt;VirtualHost 192.0.2.1&gt;
+  ServerName www.example.dom
+  ServerAdmin webgirl@example.dom
+  DocumentRoot /www/example
+&lt;/VirtualHost&gt;
+    </highlight>
   </section>
 
   <section id="denial">
 
     <p>Consider this configuration snippet:</p>
 
-    <example>
-      &lt;VirtualHost www.example1.dom&gt;<br />
-      <indent>
-        ServerAdmin webgirl@example1.dom<br />
-        DocumentRoot /www/example1<br />
-      </indent>
-      &lt;/VirtualHost&gt;<br />
-      <br />
-      &lt;VirtualHost www.example2.dom&gt;<br />
-      <indent>
-        ServerAdmin webguy@example2.dom<br />
-        DocumentRoot /www/example2<br />
-      </indent>
-      &lt;/VirtualHost&gt;
-    </example>
+    <highlight language="config">
+&lt;VirtualHost www.example1.dom&gt;
+  ServerAdmin webgirl@example1.dom
+  DocumentRoot /www/example1
+&lt;/VirtualHost&gt;
+&lt;VirtualHost www.example2.dom&gt;
+  ServerAdmin webguy@example2.dom
+  DocumentRoot /www/example2
+&lt;/VirtualHost&gt;
+    </highlight>
 
     <p>Suppose that you've assigned 192.0.2.1 to
     <code>www.example1.dom</code> and 192.0.2.2 to