4.14.1 Support range
- Organization of this subsection
(1) Directives that support IPv6
Specifying IPv6 addresses in the Listen directive and the VirtualHost directive allows connections via IPv6, and the specification of virtual hosts supporting IPv6 addresses.
The following directives support IPv6:
<VirtualHost>, AddIcon, AddIconByEncoding, AddIconByType, Allow from, CustomLog, DefaultIcon, Deny from, ErrorDocument, ExtendedStatus, HostnameLookups, HWSErrorLogClientAddr X-Forwarded-For, HWSSetEnvIfIPv6, ImapBase, ImapDefault, Listen, LogFormat, ProxyPass, ProxyPassReverse, QOSCookieDomain, QOSRedirect, Redirect, RedirectMatch, ServerAlias, ServerName, ServerSignature, SetEnvIf, SetEnvIfNoCase, TransferLog, UseCanonicalName
For details on each directive, see 6.2 Details of the directives.
(2) Note on specifying IPv6 addresses in directives
When an IPv6 address is specified in a directive, enclose the IPv6 address in square brackets ([]), as in the case of [IPv6-address]. When an IPv6 address and a port number are specified in a directive, enclose the IPv6 address in square brackets ([]) and specify the port number after a colon (:), as in the case of [IPv6-address]:port-number.
However, do not enclose the IPv6 address in square brackets ([]) when IPv6 addresses are specified in the following directives:
-
Allow from directive
-
Deny from directive
-
HWSSetEnvIfIPv6 directive
Specify a global unicast address when using an IPv6 address.
(3) Limitations
The following functions do not support IPv6:
- Address limitation
-
An IPv6 address cannot be specified in the BindAddress directive.
- Client check
-
The client is not checked when the IPv6 socket is used even if the IdentityCheck directive is set to On.
- Environment variable settings
-
An IPv6 address cannot be specified for regular expressions in the SetEnvIf directive and the SetEnvIfNoCase directive. Use the HWSSetEnvIfIPv6 directive when using an IPv6 address.