...
Create directories, UnityTest and UnityProd. These can be created anywhere but we typically create in c:\inetpub\wwwroot
In IIS, create new Application Pools using all defaults
UnityTest
UnityProd
In IIS, under the website entry being used (typically Default Web Site) convert UnityTest/UnityProd to an application. Right click on UnityTest/UnityProd and select, ‘Convert to Application’.
Update Application Pool to match newly created application pool
Accept all other defaults
If you don’t you don’t see UnityTest listed in IIS, refresh the website list or create manually by right clicking on Default Web Site (or the website name being used) and selecting ‘Add Application’
Define Alias as UnityTest or UnityProd
Define Application Pool as UntiyTest or UnityProd
Define Physical Path as C:\inetpub\wwwroot\UnityTest or C:\inetpub\wwwroot\UnityProd
Click OK
In File Explorer, right click on UnityTest and select Properties
Give Full Control of directory to new IIS Application Pool user.
Go to Properties / Security tab on directory and click Edit
Go to Properties / Security tab on directory and click Edit
Click Add
Add new security user and define the Location to be the local machine. Enter object name in the format, IIS AppPool\<newapppoolname> (i.e. IIS AppPool\UnityTest)
If entered correctly, the user will be found after clicking ‘Check Names’:
Click OK and then give Full Control
Update the Unity app pool Advanced setting IIS App Pool Advanced Settings
Update “Start Mode” to OnDemand to AlwaysRunning
Update “Idle Time-out (minutes)” from 20 to 0
Update “Idle Time-out Action” from Terminate to Suspend
Update "Maximum Worker Processes" from 1 to equal to or greater than the number of logical processors (Minimum 4).
Run this Powershell to check:
(Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors
...
...
2. Configure Unity
Several configuration files need to be updated after the Unity install. Typically these files are located in, C:\inetpub\wwwroot\UnityTest (or UnityProd). Always recycle the IIS app pool after making changes.
...