Web Server Settings

Custom web server settings that are applied to all plan subscriptions are defined by the web-server-settings node. This node is specified by complex type webServerSettings (domain_template.xsd). This type is structured as follows:

service-plan-web-settings

  • The additional node is optional. It specifies additional directives for HTTP.
  • The additional-ssl node is optional. It specifies additional directives for HTTPs.
  • The additional-nginx node is optional. It specifies additional directives for nginx.

 

The following sample packet creates a service plan and sets the memory_limit and safe_mode settings:

<packet>
<service-plan>
<add>
   <name>base_plan</name>
   <web-server-settings>
      <additional>ErrorDocument 401 /my_error_page.html</additional>
   </web-server-settings>
</add>
</service-plan>
</packet>

 

Important: When creating request packets, put nodes and elements in the order they follow in the packet structure.