Skip to main content

Task IIS - Add Website​

The IIS - Add Website Task creates a website in the IIS of the VisualCron Server computer, using an IIS Connection, with its binding, limits, logging, root folder and failed request tracing settings.

IIS - Add a new web site Task settings, with the Connection, Web site parameters, Binding parameters, Log file parameters, Limits, Virtual directory parameters and Trace failed requests logging parameters groups

warning

This Task uses an IIS Connection; see Connection - IIS. The Task always works on the IIS of the VisualCron Server computer: the Connection's Address is not used, and the changes are made as the account of the VisualCron Server service, which must be allowed to change IIS. The Connection's Username and Password are used only for network access.

The Main settings, Flow, On error, Conditions and TimeOut tabs are the same for every Task; see Job - Tasks.

For every setting below that is left empty, or that is a check box in its third state (neither selected nor cleared), the IIS default for new websites is used. A number field that does not hold a whole number also gets the IIS default.

IIS - Add a new web site tab​

  • Connection: the IIS Connection. Required. Click the Settings icon to open Manage Connections

Web site parameters​

  • Name: the name of the new website. Required
  • App pool name: the application pool of the website and its applications. Click the Refresh icon to list the application pools of the VisualCron Server computer

Binding parameters​

The Task builds the binding as IP address:port:host name.

  • Binding protocol: the protocol of the binding, for example "http" or "https"
  • Binding IP address: the IP address the website listens on, or "*" for all unassigned addresses. Fill in this field: when it is empty, the binding is not built correctly and Binding port is not used
  • Binding host name: the host name of the binding, to host several websites on the same IP address and port
  • Binding port: the port the website listens on, for example "80" for HTTP or "443" for HTTPS. Required
  • Certificate: available only when Binding protocol is "https"
warning

The Task does not assign the selected Certificate to the binding, so an "https" website created by this Task has no certificate. Assign the certificate to the binding in IIS Manager after the Task runs.

Log file parameters​

  • Log file enabled: when selected, request logging is turned on for the website
  • Log path: the folder for the log files. Click the Browse icon to select a folder
  • Log file format: "Iis", "Ncsa", "W3c" or "Custom"
  • Ext file flags: the fields in W3C log entries. Select any of "Date", "Time", "Client IP", "User name", "Site name", "Computer name", "Server IP", "Method", "Uri Stem", "Uri Query", "Http Status", "Win32 Status", "Bytes Sent", "Bytes Recv", "Time Taken", "Server Port", "User Agent", "Cookie", "Referer", "Protocol Version", "Host" and "Http SubStatus"
  • Target W3C: where W3C log entries go: "File", "ETW" (Event Tracing for Windows), or both
  • Log File Local Time Rollover: when selected, a new log file is started based on the local time of the computer instead of UTC
  • RolloverPeriod: when a new log file is started: "Max Size", "Daily", "Weekly", "Monthly" or "Hourly"
  • LogFileTruncateSize: the log file size in bytes at which a new file is started, with "Max Size"

Limits​

  • Connection timeout: the number of seconds before IIS closes an inactive connection
  • Max connections: the maximum number of simultaneous connections to the website
  • Max bandwidth: the maximum network bandwidth of the website, in bytes per second
  • Max url segments: the maximum number of path segments in a request URL

Virtual directory parameters​

  • Path: the physical folder of the website root. Required. Click the Browse icon to select a folder
  • Logon method: how IIS logs on with the user in Credential to reach the folder: "Interactive", "Batch", "Network" or "Clear text"
  • Credential: the user that IIS uses to reach the folder. The Task writes the Credential's user name and password into the IIS configuration of the website. Click the Settings icon to open Manage credentials; see Global - Credentials
warning

The Task copies the user name and password of the selected Credential into the IIS configuration of the website. IIS keeps its own copy: changing or deleting the Credential in VisualCron later does not change IIS.

Trace failed requests logging parameters​

  • Trace log file enabled: when selected, failed request tracing is turned on for the website
  • Trace log path: the folder for the trace log files. Click the Browse icon to select a folder. Variables are not resolved in this field
  • Max log files: the maximum number of trace log files kept for the website

Output and errors​

On success, the output is Site index= followed by the ID of the new website. When a website with that name already exists, the Task does not change it and writes no output, and the Task reports success. When a step fails, the Task fails; the error names the last step reached.

The TimeOut tab does not stop this Task.