diff options
author | Stefan Fritsch <sf@sfritsch.de> | 2014-03-29 21:56:19 +0100 |
---|---|---|
committer | Stefan Fritsch <sf@sfritsch.de> | 2014-03-29 21:56:45 +0100 |
commit | 2a463b3cd73c32ee9dcd508248d0194923f435f4 (patch) | |
tree | 2ff478255a77a55031056790918b6f983bb7b20a /docs/manual/vhosts/mass.html.en | |
parent | 86d5cc79d9d6750da8771fdb0c9ab22c19b8ad45 (diff) | |
download | apache2-upstream/2.4.9.tar.gz |
Imported Upstream version 2.4.9upstream/2.4.9
Diffstat (limited to 'docs/manual/vhosts/mass.html.en')
-rw-r--r-- | docs/manual/vhosts/mass.html.en | 34 |
1 files changed, 12 insertions, 22 deletions
diff --git a/docs/manual/vhosts/mass.html.en b/docs/manual/vhosts/mass.html.en index 87d45952..c43e1349 100644 --- a/docs/manual/vhosts/mass.html.en +++ b/docs/manual/vhosts/mass.html.en @@ -9,7 +9,7 @@ <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /><link rel="stylesheet" type="text/css" href="../style/css/prettify.css" /> -<script src="../style/scripts/prettify.js" type="text/javascript"> +<script src="../style/scripts/prettify.min.js" type="text/javascript"> </script> <link href="../images/favicon.ico" rel="shortcut icon" /></head> @@ -55,8 +55,7 @@ mod_rewrite</a></li> <code><VirtualHost></code> sections that are substantially the same, for example:</p> -<pre class="prettyprint lang-config"> -<VirtualHost 111.22.33.44> +<pre class="prettyprint lang-config"><VirtualHost 111.22.33.44> ServerName customer-1.example.com DocumentRoot /www/hosts/customer-1.example.com/docs ScriptAlias /cgi-bin/ /www/hosts/customer-1.example.com/cgi-bin @@ -72,8 +71,7 @@ mod_rewrite</a></li> ServerName customer-N.example.com DocumentRoot /www/hosts/customer-N.example.com/docs ScriptAlias /cgi-bin/ /www/hosts/customer-N.example.com/cgi-bin -</VirtualHost> -</pre> +</VirtualHost></pre> <p>We wish to replace these multiple @@ -158,8 +156,7 @@ mod_vhost_alias</a></h2> virtual host arrangement outlined in the <a href="#motivation">Motivation</a> section above using <code class="module"><a href="../mod/mod_vhost_alias.html">mod_vhost_alias</a></code>.</p> -<pre class="prettyprint lang-config"> -# get the server name from the Host: header +<pre class="prettyprint lang-config"># get the server name from the Host: header UseCanonicalName Off # this log format can be split per-virtual-host based on the first field @@ -169,8 +166,7 @@ CustomLog logs/access_log vcommon # include the server name in the filenames used to satisfy requests VirtualDocumentRoot /www/hosts/%0/docs -VirtualScriptAlias /www/hosts/%0/cgi-bin -</pre> +VirtualScriptAlias /www/hosts/%0/cgi-bin</pre> <p>This configuration can be changed into an IP-based virtual @@ -196,8 +192,7 @@ examples.</p> <code>/home/user/www</code>. It uses a single <code>cgi-bin</code> directory instead of one per virtual host.</p> -<pre class="prettyprint lang-config"> -UseCanonicalName Off +<pre class="prettyprint lang-config">UseCanonicalName Off LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon CustomLog logs/access_log vcommon @@ -206,8 +201,7 @@ CustomLog logs/access_log vcommon VirtualDocumentRoot /home/%2/www # single cgi-bin directory -ScriptAlias /cgi-bin/ /www/std-cgi/ -</pre> +ScriptAlias /cgi-bin/ /www/std-cgi/</pre> <p>There are examples of more complicated @@ -228,8 +222,7 @@ ScriptAlias /cgi-bin/ /www/std-cgi/ <code><VirtualHost></code> configuration sections, as shown below.</p> -<pre class="prettyprint lang-config"> -UseCanonicalName Off +<pre class="prettyprint lang-config">UseCanonicalName Off LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon @@ -259,8 +252,7 @@ LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon VirtualDocumentRoot /www/homepages/%0/docs ScriptAlias /cgi-bin/ /www/std-cgi/ -</VirtualHost> -</pre> +</VirtualHost></pre> <div class="note"> @@ -286,8 +278,7 @@ LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon negating the need for a DNS lookup. Logging will also have to be adjusted to fit this system.</p> -<pre class="prettyprint lang-config"> -# get the server name from the reverse DNS of the IP address +<pre class="prettyprint lang-config"># get the server name from the reverse DNS of the IP address UseCanonicalName DNS # include the IP address in the logs so they may be split @@ -296,8 +287,7 @@ CustomLog logs/access_log vcommon # include the IP address in the filenames VirtualDocumentRootIP /www/hosts/%0/docs -VirtualScriptAliasIP /www/hosts/%0/cgi-bin -</pre> +VirtualScriptAliasIP /www/hosts/%0/cgi-bin</pre> </div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div> @@ -336,7 +326,7 @@ var comments_identifier = 'http://httpd.apache.org/docs/2.4/vhosts/mass.html'; } })(window, document); //--><!]]></script></div><div id="footer"> -<p class="apache">Copyright 2013 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> +<p class="apache">Copyright 2014 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="http://wiki.apache.org/httpd/FAQ">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div><script type="text/javascript"><!--//--><![CDATA[//><!-- if (typeof(prettyPrint) !== 'undefined') { prettyPrint(); |