From: Vincent Deffontaines
Although addr can be hostname it is recommended - that you always use an IP address, e.g.
+ that you always use an IP address and a port, e.g.
- NameVirtualHost 111.22.33.44
+ NameVirtualHost 111.22.33.44:80
With the NameVirtualHost
directive you
@@ -2374,8 +2374,8 @@ hosting
exactly match the argument to the NameVirtualHost
directive.
- NameVirtualHost 1.2.3.4
- <VirtualHost 1.2.3.4>
+ NameVirtualHost 1.2.3.4:80
+ <VirtualHost 1.2.3.4:80>
# ...
</VirtualHost>
- <VirtualHost 10.1.2.3>
+ <VirtualHost 10.1.2.3:80>
ServerAdmin webmaster@host.example.com
DocumentRoot /www/docs/host.example.com
@@ -3548,7 +3548,7 @@ hostname or IP address
IPv6 example is shown below:
- <VirtualHost [2001:db8::a00:20ff:fea7:ccea]>
+ <VirtualHost [2001:db8::a00:20ff:fea7:ccea]:80>
ServerAdmin webmaster@host.example.com
DocumentRoot /www/docs/host.example.com
diff --git a/docs/manual/mod/core.xml b/docs/manual/mod/core.xml
index e81caee2bbb..3c390f596da 100644
--- a/docs/manual/mod/core.xml
+++ b/docs/manual/mod/core.xml
@@ -2302,10 +2302,10 @@ hosting
href="../vhosts/">name-based virtual hosts.
Although addr can be hostname it is recommended - that you always use an IP address, e.g.
+ that you always use an IP address and a port, e.g.With the