Manually Adding a Site to IIS

Introduction

IIS is Microsoft’s standard webserver that comes pre-installed on all of our Windows cloud servers. The goal of this article is to walk you through our recommended steps for creating new sites in IIS.

Step-by-Step Guide

Step 1: Open IIS on your Server.

  1. Remote into your server.

  2. Click the search icon and type “IIS”.

  3. Select “Internet Information Services (IIS) Manger”.

Step 2: Add our site

  1. Expand the server node on the left until you see the “Sites” folder.

  2. Right-click on “Site” and select “Add Website…”.

  3. Fill in the following details:

    • Site name:
    • Physical Path:
    • Host name:

    Note: We recommend using a physical path in the C:\home directory. Similar to our screenshot.

Step 2: Edit bindings

  1. Now we need to add the non-www binding. Right-click your new site and select “Edit Bindings…”

  2. Select “Add”.

  3. Fill in the “Host name:” field and click “OK” once you’re done.

HTTPS binding steps
  1. Add a new binding to the site.
  2. Change the “Type” To “https”.
  3. Fill in the “Host name:”.
  4. Check the “Require Server Name Indication” box.
  5. Choose your SSL from the “SSL Certificate” drop-down.

Step 3: Add Virtual Directories (ColdFusion Only)

If your site utilizes ColdFusion, then you’ll need to add the “cf_scripts” and “jakarta” virtual directories:

  1. Right click on your site and select “Add Virtual Directory

  2. Create the “cf_scripts” virtual directory with the following file path:
    C:\ColdFusion2023\cfusion\wwwroot\cf_scripts

  3. Create the “jakarta” virtual directory with the following file path:
    C:\ColdFusion2023\config\wsconfig\1

Step 4: Configure ColdFusion Tomcat Connector - Required for 50 sites or more in IIS

ColdFusion 2025 Steps
  1. Open PowerShell ISE on your server and paste the following script into it.

    # Name of site in IIS that you'll be configuring.
    # Reference the site you've created in IIS.
    $site = "domain.com"
    # Ensure you've configured the above variable to reference the new site you've created in IIS. 
    
    # Execute wsconfig and capture output
    $results = & "C:\ColdFusion2025\cfusion\runtime\bin\wsconfig.exe" -ws IIS -site $site -norestart
    
    # Check if the output was successful or not
    if ($results -like "*This web server is already configured for ColdFusion*") {
        # Unsuccessful. Need to run the removal command first.
        & "C:\ColdFusion2025\cfusion\runtime\bin\wsconfig.exe" -remove -ws IIS -site $site -norestart
        # Now run the creation command
        & "C:\ColdFusion2025\cfusion\runtime\bin\wsconfig.exe" -ws IIS -site $site -norestart
    
    } else {
        # Do nothing. Successful.
    }
    
  2. Change the $site variable to reference your newly created site in IIS.

  3. Hit the “run” button for the script to execute.

  4. Review the ISAPI Filters, Handler Mappings, and Virtual Directories in IIS for your newly created site to ensure the ColdFusion references were created as expected.

ColdFusion 2023 Steps
  1. Open PowerShell ISE on your server and paste the following script into it.

    # Name of site in IIS that you'll be configuring.
    # Reference the site you've created in IIS.
    $site = "domain.com"
    # Ensure you've configured the above variable to reference the new site you've created in IIS. 
    
    # Execute wsconfig and capture output
    $results = & "C:\ColdFusion2023\cfusion\runtime\bin\wsconfig.exe" -ws IIS -site $site -norestart
    
    # Check if the output was successful or not
    if ($results -like "*This web server is already configured for ColdFusion*") {
        # Unsuccessful. Need to run the removal command first.
        & "C:\ColdFusion2023\cfusion\runtime\bin\wsconfig.exe" -remove -ws IIS -site $site -norestart
        # Now run the creation command
        & "C:\ColdFusion2023\cfusion\runtime\bin\wsconfig.exe" -ws IIS -site $site -norestart
    
    } else {
        # Do nothing. Successful.
    }
    
  2. Change the $site variable to reference your newly created site in IIS.

  3. Hit the “run” button for the script to execute.

  4. Review the ISAPI Filters, Handler Mappings, and Virtual Directories in IIS for your newly created site to ensure the ColdFusion references were created as expected.

ColdFusion 2021 Steps
  1. Open PowerShell ISE on your server and paste the following script into it.

    # Name of site in IIS that you'll be configuring.
    # Reference the site you've created in IIS.
    $site = "domain.com"
    # Ensure you've configured the above variable to reference the new site you've created in IIS. 
    
    # Execute wsconfig and capture output
    $results = & "C:\ColdFusion2021\cfusion\runtime\bin\wsconfig.exe" -ws IIS -site $site -norestart
    
    # Check if the output was successful or not
    if ($results -like "*This web server is already configured for ColdFusion*") {
        # Unsuccessful. Need to run the removal command first.
        & "C:\ColdFusion2021\cfusion\runtime\bin\wsconfig.exe" -remove -ws IIS -site $site -norestart
        # Now run the creation command
        & "C:\ColdFusion2021\cfusion\runtime\bin\wsconfig.exe" -ws IIS -site $site -norestart
    
    } else {
        # Do nothing. Successful.
    }
    
  2. Change the $site variable to reference your newly created site in IIS.

  3. Hit the “run” button for the script to execute.

  4. Review the ISAPI Filters, Handler Mappings, and Virtual Directories in IIS for your newly created site to ensure the ColdFusion references were created as expected.

Step 5 (Optional): Adding a testing URL to your site bindings

Click here for instructions
  1. Select the site in IIS that you need to add a testing URL to.

  2. Select “Bindings…”.

  3. Select “Add”.

  4. Type the testing URL that you would like to use, then select “OK”.

Once you have added the testing URL to the site bindings, you can either update the DNS for that testing URL to point to the IP of the server that you are testing on, or you can use the hosts file entry that is linked to in the next step of this article.

Step 6: Upload your site files and test

Below are some of our resources that will help you get started with uploading files to your website directory, as well as testing the new site without having to change DNS yet.

Please don’t hesitate to reach out to our team of engineers if you encounter issues or have any questions.