IIS 7 - Create a Web Site for StudyTRAX

Overview

This page describes how to add an Application Pool to run StudyTRAX under and how to add StudyTRAX as a Web Site in IIS 7. Additionally, if StudyTRAX is running under SSL, you should redirect requests for HTTP to HTTPS so users who try to access the site via HTTP will still be able to access StudyTRAX.

Add Application Pool for StudyTRAX

  1. Run Internet Information Services (IIS) Manager
  2. Right click on Application Pools and select "Add Application Pool..."
  3. Enter a Name: for the application pool (e.g., StudyTRAX)
  4. Select .Net Framework v4.0.30319
  5. Click OK
  6. Select the Application Pool that you just created and click the Advanced Settings link on the right.
  7. Make sure that the .NET Framework Version is set to v4.0.
  8. Select "True" for the Enable 32-bit Applications option.
  9. Scroll down to the Process Model section.
  10. Click in the Identity field and then click the "..." button.
  11. Select Custom account option and click the Set button.
  12. Enter the credentials for the user that you created in the Creating a StudyTRAX Service Account step

    These credentials will be used for connecting to the database. They will also need to have Full Control permission to the Temp and Log directories for StudyTRAX.

  13. Click OK to set the credentials.
  14. Click OK to close the Application Pool Identity dialog.
  15. In the Idle Time-out (minutes) field, change the value to 1440 or greater.
  16. Scroll down to the Recycling section
  17. Change Disable Recycling for Configuration Changes to True
  18. Change the Regular Time Interval (minutes) to 0.
  19. Click in the Specific Times field then click the "..." button.
  20. Click the Add button on the TimeSpan Collection Editor. Change the value in the right panel to 3am (03:00:00) as the recycle time. This gives the StudyTRAX batch processing time to complete before the Application Pool is recycled.
  21. Click the OK button to close the TimeSpan Collection Editor
  22. Click the OK button to close the Advanced Settings dialog.

Add StudyTRAX Web Site

  1. Run Internet Information Services (IIS) Manager
  2. Right click on the Sites folder and select "Add Web Site..."
  3. In the Add Web Site dialog, enter "StudyTRAX" for the Site name:.
  4. Select the Application Pool you set up to run StudyTRAX.
  5. Enter the root StudyTRAX folder that was unzipped for the Physical Path.
  6. Although not required, it is highly recommended that Binding type be https. This requires a SSL certificate.
  7. Click OK button.

Create Redirect from HTTP to HTTPS

  1. Run Internet Information Services (IIS) Manager
  2. Right click on the Sites folder and select "Add Web Site..."
  3. In the Add Web Site dialog, enter "StudyTraxRedirect" for the Site name:.
  4. Select an empty directory. This directory is only used to store an XML configuration file for this web site.
  5. Select HTTP Redirect in the center pane in the IIS section. If HTTP Redirect is not an available option, it needs to be added as a feature to the IIS role.
  6. Check Redirect requests to this destination:
  7. Enter the HTTPS URL for StudyTRAX
  8. Click Apply in the upper right part of the dialog.