Skip to main content
Version: 10.1

Server configuration: Server element

In a config.xmlserver configuration file, a <Server> element contains the configuration for a server and its services.

Example

<Server 
name="Default"
baseURI="http://0.0.0.0:8090/"
publicationLocation="C:\usoft\servers\Default\"
serviceDescription="REST and WSDL services"
advertise=
"GenericResource,AdminResource,LoggingResource,GenericExceptionHandler,">    
<Services>        
<Service name="myservice" active="true"/>        
<Service name="mycustomservice" active="true"/>      
</Services>
</Server>

Child elements

The following table describes child elements for the <Server> element:

NameRequiredDescription
AuthenticatorNo Contains configuration properties for authenticating administration resources.
PropertiesNo Contains server properties.
ServicesNo Contains configuration properties for services defined in Service Definer.
HttpProtocolNo Contains configuration properties for HTTP Headers.

Attributes

The following table describes attributes for the <Server> element:

NameRequiredTypeDescription
nameYesStringThe name of the server.
baseURIYesStringThe base uri of the server. This is the first part in the URL used to access a service defined in Service Definer.
externalBaseURINo StringThe external uri of the server as it will be used by a client application. This is the first part in the URL used to access a service defined in Service Definer.
publicationLocationYesStringThe path where the server is published.
serviceDescriptionNo StringServer description string.
advertiseNo StringComma separated string, defining a collection of REST resources that are not defined in Service Definer. AdminResource, LogResources from Administration page of a server in Service Definer are published in this attribute.
corsConfigNo StringA reference to a CORS configuration defined in Cors element. This attribute contains the name of the CORS configuration used for this server.
defaultSecurityConfigNameNo StringA reference to a security configuration section defined in SecurityConfig.xml used for this server.
throttlingEnabledNo Y/N valueEnables requests throttling on a server. This property is used in combination with maxServerRequests property.Default value = N
maxServerRequestsNo IntegerDefine the maximum allowed number of requests allowed by a server. This property is used when throttlingEnabled="Y".