ServerAdmin @@ServerAdmin@@
#
-# ServerName allows you to set a host name which is sent back to clients for
-# your server if it's different than the one the program would get (i.e., use
-# "www" instead of the host's real name).
+# ServerName gives the name and port that the server uses to identify itself.
+# This can often be determined automatically, but we recommend you specify
+# it explicitly to prevent problems during startup.
#
-# 127.0.0.1 is the TCP/IP local loop-back address. Your machine
-# always knows itself by this address. If you machine is connected to
-# a network, you should change this to be your machine's name
+# If this is not set to valid DNS name for your host, server-generated
+# redirections will not work. See also the UseCanonicalName directive.
#
-# Note: You cannot just invent host names and hope they work. The name you
-# define here must be a valid DNS name for your host. If you don't understand
-# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
-# You will have to access it by its address (e.g., http://123.45.67.89/)
-# anyway, and this will make redirections work in a sensible way.
+# You will have to access it by its address anyway, and this will make
+# redirections work in a sensible way.
#
-ServerName @@ServerName@@
+#ServerName new.host.name:80
+
+#
+# UseCanonicalName: Determines how Apache constructs self-referencing
+# URLs and the SERVER_NAME and SERVER_PORT variables.
+# When set "Off", Apache will use the Hostname and Port supplied
+# by the client. When set "On", Apache will use the value of the
+# ServerName directive.
+#
+UseCanonicalName Off
#
# DocumentRoot: The directory out of which you will serve your
Deny from all
</Files>
-#
-# UseCanonicalName: With this setting turned on, whenever Apache needs
-# to construct a self-referencing URL (a URL that refers back to the
-# server the response is coming from) it will use ServerName to form
-# a "canonical" name. With this setting off, Apache will use the
-# hostname:port that the client supplied, when possible. This also
-# affects SERVER_NAME and SERVER_PORT in CGI scripts.
-#
-UseCanonicalName On
-
#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
-# You will have to access it by its address (e.g., http://123.45.67.89/)
-# anyway, and this will make redirections work in a sensible way.
+# You will have to access it by its address anyway, and this will make
+# redirections work in a sensible way.
#
#ServerName new.host.name:80
+#
+# UseCanonicalName: Determines how Apache constructs self-referencing
+# URLs and the SERVER_NAME and SERVER_PORT variables.
+# When set "Off", Apache will use the Hostname and Port supplied
+# by the client. When set "On", Apache will use the value of the
+# ServerName directive.
+#
+UseCanonicalName Off
+
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
Deny from all
</Files>
-#
-# UseCanonicalName: With this setting turned on, whenever Apache needs
-# to construct a self-referencing URL (a URL that refers back to the
-# server the response is coming from) it will use ServerName to form
-# a "canonical" name. With this setting off, Apache will use the
-# hostname:port that the client supplied, when possible. This also
-# affects SERVER_NAME and SERVER_PORT in CGI scripts.
-#
-UseCanonicalName On
-
#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
-# You will have to access it by its address (e.g., http://123.45.67.89/)
-# anyway, and this will make redirections work in a sensible way.
+# You will have to access it by its address anyway, and this will make
+# redirections work in a sensible way.
#
ServerName @@ServerName@@:@@Port@@
+#
+# UseCanonicalName: Determines how Apache constructs self-referencing
+# URLs and the SERVER_NAME and SERVER_PORT variables.
+# When set "Off", Apache will use the Hostname and Port supplied
+# by the client. When set "On", Apache will use the value of the
+# ServerName directive.
+#
+UseCanonicalName Off
+
#
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
Deny from all
</Files>
-#
-# UseCanonicalName: With this setting turned on, whenever Apache needs
-# to construct a self-referencing URL (a URL that refers back to the
-# server the response is coming from) it will use ServerName to form
-# a "canonical" name. With this setting off, Apache will use the
-# hostname:port that the client supplied, when possible. This also
-# affects SERVER_NAME and SERVER_PORT in CGI scripts.
-#
-UseCanonicalName On
-
#
# TypesConfig describes where the mime.types file (or equivalent) is
# to be found.