#如果你没有注册dns名字,请在这里输入ip地址。
你可以在任何情况下使用ip地址,这也使用得重定向变得敏感
servername www.moers.com: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:决定apaceh如何构建自定参考url,和server_name及server_port变量
当设为off时,apache将使用客户端给出的域名和端口。当设为on时,apache将使用servername指令
usecanonicalname off
#
# documentroot: the directory out of which you will serve your
# documents. by default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
#documentroot:服务器文档放置目录。在默认情形下,所有的请求都从这里开始,除了记号和别名将改指它处以外。