Share via


cgi Element [IIS Settings Schema]

Note

For more information about the cgi element, see the following topic on the Microsoft IIS.net Web site: CGI <cgi>.

Configures default settings for Common Gateway Interface (CGI) applications.

Syntax

Attributes and Elements

The following sections describe attributes, child elements, and parent elements for this section.

Attributes

Attribute

Description

createCGIWithNewConsole

Optional Boolean attribute.

Specifies whether a CGI application runs in its own console.

Note

If the value is set to true, each CGI application creates a new console when the application is started. A value of false indicates that CGI applications should run without a console.

The default value is false.

createProcessAsUser

Optional Boolean attribute.

Specifies whether a CGI process is created in the system context or in the context of the requesting user.

The default value is true.

timeout

Optional timeSpan attribute.

Specifies the time-out for a CGI application.

The default value is 00:15:00 (15 minutes).

Child Elements

None.

Parent Elements

Element

Description

configuration

Specifies the root element in every configuration file that is used by IIS 7.

system.webServer

Specifies the top-level section group (in ApplicationHost.config) in which this element is defined.

Remarks

For more information about the cgi element, see the following topic on the Microsoft IIS.net Web site: CGI <cgi>.

Element Information

Configuration locations

Machine.config

ApplicationHost.config

Root application Web.config

Application Web.config

Directory Web.config

Requirements

Microsoft Internet Information Services (IIS) version 7.0

See Also

Reference

application Element for fastCgi [IIS Settings Schema]

fastCgi Element [IIS Settings Schema]

isapiCgiRestriction Element [IIS Settings Schema]