|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ConfigurationThis document describes the configuration of the Anvil server. The configuration file provides information in a tree-like structure about how the server should handle virtual hosts and zones (directories). This will enable different kinds of behavior for request handling of different hosts and directories. The configuration consists of server, domains, zones, and preferences. Each of these can contain attributes. Child domains and zones inherit the attributes of servers, domains, and zones, unless the attributes are overridden by the child domains or zones. Preferences cannot have child elements; they can only contain attributes. Individual attributes within preferences are not inherited; rather, the entire preference is inherited. Inheritance can be overridden by adding the same preference to the child element. The contents of a configuration can also be accessed from an Anvil script. To retrieve the root, use anvil.system.getServer(), which returns an instance of the anvil.system.Configurable class.
#
# comments start with '#'
#
server:
# attributes, inherits to My_Domain
container = file:/home/httpd/
invalidate = false
# these two preferences inherit to My_Domain
sessioncontainer:
idlength = 20
end
session:
required = false
end
domain:
name = My_Domain
# Attribute from server overridden
invalidate = true
# Backslash at end of line continues
# the value to next line.
hostnames = my.domain.com\
my.domain.org
# session preference from server is overridden
session:
required = true
autoredirect = true
end
zone:
path = doc/
session:
required = false
end
end
end
end
Some of these configuration sections require providers implementing ther required interface(s), see Providers for details.
|
Document id:
97
Children documents:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||