From: dgaudet Date: Sun, 4 May 1997 20:11:53 +0000 (+0000) Subject: Add documentation about :port in virtualhost. Note the necessity of X-Git-Tag: APACHE_1_2b11~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e448f815566ac4aefd06ff8db5104a14d548cba;p=apache Add documentation about :port in virtualhost. Note the necessity of using _default_:* if the user wants to match all ips on all ports. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@78098 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/dns-caveats.html b/docs/manual/dns-caveats.html index f91b566f53..bf2d035159 100644 --- a/docs/manual/dns-caveats.html +++ b/docs/manual/dns-caveats.html @@ -139,8 +139,11 @@ for your OS. the IP address of any of the webservers will be served from the "main" or "default" server configurations. The "main" server configuration consists of all those definitions appearing outside of any VirtualHost section. -You may want instead to define a <VirtualHost _default> -which returns 403 or 404 for all hits. +You may want instead to define a <VirtualHost _default_:*> +which returns 403 or 404 for all hits. (The trailing :* +makes it apply to all ports, which is just a safety measure should you +begin using multiple Listen +directives.)

Tips to Avoid these problems

@@ -149,7 +152,7 @@ which returns 403 or 404 for all hits.
  • use IP addresses in Listen
  • use IP addresses in BindAddress
  • ensure all virtual hosts have an explicit ServerName -
  • create a <VirtualHost _default_> server that +
  • create a <VirtualHost _default_:*> server that has no pages to serve diff --git a/docs/manual/mod/core.html b/docs/manual/mod/core.html index be85645204..3b27c5bb67 100644 --- a/docs/manual/mod/core.html +++ b/docs/manual/mod/core.html @@ -1370,7 +1370,7 @@ section. Addr can be Example:
    -<VirtualHost host.foo.com>
    +<VirtualHost 10.1.2.3>
    ServerAdmin webmaster@host.foo.com
    DocumentRoot /www/docs/host.foo.com
    ServerName host.foo.com
    @@ -1393,6 +1393,12 @@ in another virtual host. In the absence of any _default_ virtual host the "main" server config, consisting of all those definitions outside any VirtualHost section, is used when no match occurs.

    +You can specify a :port to change the port that is matched. +If unspecified then it defaults to the same port as the most recent +Port statement of the main server. You +may also specify :* to match all ports on that address. +(This is recommended when used with _default_.)

    + SECURITY: See the security tips document for details on why your security could be compromised if