From: Christophe Jaillet
More Efficient IP-Based Virtual Hosting
Mass virtual hosts with
mod_rewrite
Mass virtual hosts with mod_macroSee also
UseCanonicalName Off
LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
-CustomLog logs/access_log vcommon
+CustomLog "logs/access_log" vcommon
# include part of the server name in the filenames
VirtualDocumentRoot "/home/%2/www"
@@ -240,18 +241,18 @@ LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
<VirtualHost 111.22.33.44>
ServerName www.commercial.example.com
-
+
CustomLog "logs/access_log.commercial" vcommon
-
+
VirtualDocumentRoot "/www/commercial/%0/docs"
VirtualScriptAlias "/www/commercial/%0/cgi-bin"
</VirtualHost>
<VirtualHost 111.22.33.45>
ServerName www.homepages.example.com
-
+
CustomLog "logs/access_log.homepages" vcommon
-
+
VirtualDocumentRoot "/www/homepages/%0/docs"
ScriptAlias "/cgi-bin/" "/www/std-cgi/"
</VirtualHost>
@@ -304,6 +305,16 @@ complicated techniques such as storing the vhost definitions externally
and accessing them via RewriteMap. These techniques are
discussed in the rewrite
documentation.
+
+Another option for dynamically generated virtual hosts is
+mod_macro, with which you can create a virtualhost
+template, and invoke it for multiple hostnames. An example of this is
+provided in the Usage section of the module
+documentation.
+
Available Languages: en | diff --git a/docs/manual/vhosts/mass.xml.fr b/docs/manual/vhosts/mass.xml.fr index 08c476cc859..cf76d8bde6f 100644 --- a/docs/manual/vhosts/mass.xml.fr +++ b/docs/manual/vhosts/mass.xml.fr @@ -1,7 +1,7 @@ - + + +