From: André Malo Date: Fri, 10 Oct 2003 23:08:19 +0000 (+0000) Subject: add a note about *:80 and change the example to use it. X-Git-Tag: pre_ajp_proxy~1119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b0fbb9a6fc8ab5a142ae3d9c786312c4db8065e5;p=apache add a note about *:80 and change the example to use it. PR: 23606 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@101407 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/vhosts/name-based.html.en b/docs/manual/vhosts/name-based.html.en index 102e255826..f22243afa5 100644 --- a/docs/manual/vhosts/name-based.html.en +++ b/docs/manual/vhosts/name-based.html.en @@ -77,10 +77,12 @@ address (and possibly port) on the server that will be accepting requests for the hosts. This is configured using the NameVirtualHost directive. In the normal case where any and all IP addresses on the server should - be used, you can use * as the argument to NameVirtualHost. Note that mentioning an - IP address in a NameVirtualHost - directive does not automatically make the server listen to that IP address. - See Setting which addresses and ports Apache uses + be used, you can use * as the argument to NameVirtualHost. If you're planning to use + multiple ports (e.g. running SSL) you should add a Port to the argument, + such as *:80. Note that mentioning an IP address in a + NameVirtualHost directive does not + automatically make the server listen to that IP address. See + Setting which addresses and ports Apache uses for more details. In addition, any IP address specified here must be associated with a network interface on the server.

@@ -109,9 +111,9 @@ Then you simply add the following to httpd.conf:

- NameVirtualHost *
+ NameVirtualHost *:80

- <VirtualHost *>
+ <VirtualHost *:80>
ServerName www.domain.tld
ServerAlias domain.tld *.domain.tld
@@ -119,7 +121,7 @@
</VirtualHost>

- <VirtualHost *>
+ <VirtualHost *:80>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain
diff --git a/docs/manual/vhosts/name-based.xml b/docs/manual/vhosts/name-based.xml index 08c651a25d..8b416c7b36 100644 --- a/docs/manual/vhosts/name-based.xml +++ b/docs/manual/vhosts/name-based.xml @@ -76,10 +76,12 @@ module="core">NameVirtualHost directive. In the normal case where any and all IP addresses on the server should be used, you can use * as the argument to NameVirtualHost. Note that mentioning an - IP address in a NameVirtualHost - directive does not automatically make the server listen to that IP address. - See Setting which addresses and ports Apache uses + module="core">NameVirtualHost. If you're planning to use + multiple ports (e.g. running SSL) you should add a Port to the argument, + such as *:80. Note that mentioning an IP address in a + NameVirtualHost directive does not + automatically make the server listen to that IP address. See + Setting which addresses and ports Apache uses for more details. In addition, any IP address specified here must be associated with a network interface on the server.

@@ -114,9 +116,9 @@ Then you simply add the following to httpd.conf:

- NameVirtualHost *
+ NameVirtualHost *:80

- <VirtualHost *>
+ <VirtualHost *:80>
ServerName www.domain.tld
ServerAlias domain.tld *.domain.tld
@@ -124,7 +126,7 @@
</VirtualHost>

- <VirtualHost *>
+ <VirtualHost *:80>
ServerName www.otherdomain.tld
DocumentRoot /www/otherdomain