Name
UseCanonicalName
Synopsis
UseCanonicalName on|off|dns
[server config, within
<Directory>
, or
<VirtualHost>
]
Used to build a self-referential URL.
If on
, Apache uses the
<ServerName>
directive to build a URL
representing itself. If off
, Apache attempts to
construct its URL from the client parameters, which is typical when
using the VirtualHost
directive to represent
different addresses. The dns
value causes the
server to use reverse DNS lookup to determine the self URL.
Get Webmaster in a Nutshell, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.