We are excited to announce that the IIS.NET Forums are moving to the new Microsoft Q&A experience. Learn more >

View Complete Thread
  • Re: The <fastCgi> element configuration levels

    Mar 05, 2021 04:39 AM|skvoboo|LINK


    So it only can be configured on applicationhost.config.

    Related question.

    Is it possible to configure the FastCGI application at the site level inside the applicationHost.config file after changing the allowDefinition attribute of the fastCgi section from AppHostOnly to MachineToApplication and unlocking the <fastCgi> and <handlers> sections?

    Site location in the applicationHost.config file:

    <location path="Default Web Site">
                <application fullPath="C:\php\php-cgi.exe" arguments="-d name=value" />

    Handler in the site web.config file:

                <add name="FastCGI-PHP" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="C:\php\php-cgi.exe|-d name=value" resourceType="File" />