summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-www/apache/files/conf/DynamicVhosts.conf')
-rw-r--r--net-www/apache/files/conf/DynamicVhosts.conf23
1 files changed, 23 insertions, 0 deletions
diff --git a/net-www/apache/files/conf/DynamicVhosts.conf b/net-www/apache/files/conf/DynamicVhosts.conf
new file mode 100644
index 000000000000..b63cbdf1031e
--- /dev/null
+++ b/net-www/apache/files/conf/DynamicVhosts.conf
@@ -0,0 +1,23 @@
+#
+#Simple dynamic virtual hosts
+#
+# This extract from apache.conf implements the virtual host arrangement
+# outlined at http://www.apache.org/docs/vhosts/mass.html, using
+# mod_vhost_alias.
+
+# get the server name from the Host: header
+#UseCanonicalName Off
+#
+# this log format can be split per-virtual-host based on the first field
+#LogFormat "%V %h %l %u %t \"%r\" %s %b" vcommon
+#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
+#
+# This configuration can be changed into an IP-based virtual hosting
+# solution by just turning UseCanonicalName Off into UseCanonicalName DNS.
+# The server name that is inserted into the filename is then derived from
+# the IP address of the virtual host.
+