Return-Path:
In many situations Apache has to construct a
self-referential URL. That is, a URL which refers back to
the same server. With For example, if With UseCanonicalName on
Apache will
- use the hostname and port specified in the ServerName
directive to construct a canonical
+ use the hostname and port specified in the ServerName
directive to construct the canonical
name for the server. This name is used in all self-referential
URLs, and for the values of SERVER_NAME
and
SERVER_PORT
in CGIs.ServerName
is set to
+ www.example.com
and Port
is set
+ to 9090
, then the canonical name of the server
+ is www.example.com:9090
. In the event that
+ Port
has its default value of
+ 80
, the :80
is ommitted from the
+ canonical name.UseCanonicalName off
Apache will form
self-referential URLs using the hostname and port supplied by
the client if any are supplied (otherwise it will use the
- canonical name). These values are the same that are used to
- implement name based
- virtual hosts, and are available with the same clients. The
- CGI variables SERVER_NAME
and
- SERVER_PORT
will be constructed from the client
- supplied values as well.SERVER_NAME
and SERVER_PORT
will be
+ constructed from the client supplied values as well.
An example where this may be useful is on an intranet server
where you have users connecting to the machine using short
@@ -1707,8 +1714,9 @@
slash then Apache will redirect them to
http://www.domain.com/splat/
. If you have
authentication enabled, this will cause the user to have to
- reauthenticate twice (once for www
and once again
- for www.domain.com
). But if
+ authenticate twice (once for www
and once again
+ for www.domain.com
-- see the
+ FAQ on this subject for more information). But if
UseCanonicalName
is set off, then Apache will
redirect to http://www/splat/
.
UseCanonicalName on
Apache will
use the hostname and port specified in the SERVER_NAME
and
SERVER_PORT
in CGIs.
+ For example, if www.example.com
and 9090
, then the canonical name of the server
+ is www.example.com:9090
. In the event that
+ 80
, the :80
is ommitted from the
+ canonical name.
With UseCanonicalName off
Apache will form
self-referential URLs using the hostname and port supplied by
the client if any are supplied (otherwise it will use the
- canonical name). These values are the same that are used to
- implement name based
- virtual hosts, and are available with the same clients. The
- CGI variables SERVER_NAME
and
- SERVER_PORT
will be constructed from the client
- supplied values as well.
SERVER_NAME
and SERVER_PORT
will be
+ constructed from the client supplied values as well.
An example where this may be useful is on an intranet server
where you have users connecting to the machine using short
@@ -2464,8 +2472,10 @@
slash then Apache will redirect them to
http://www.domain.com/splat/
. If you have
authentication enabled, this will cause the user to have to
- reauthenticate twice (once for www
and once again
- for www.domain.com
). But if
+ authenticate twice (once for www
and once again
+ for www.domain.com
-- see the
+ FAQ on this subject for more information). But if
http://www/splat/
.