Share via


Creating Applications in IIS 6.0

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

To create an application, you must first designate a directory as the starting point, which is also called the application root, for the application. You can then set properties for the application. Each application can have a friendly name. This name appears in IIS Manager and gives you a way to distinguish between applications. The application name is not used anywhere else.

Note

Web sites are root-level applications by default. When you create a Web site, a default application is created at the same time. You can use this root-level application, remove it, or replace it with a new application.

You can remove a directory from the application boundaries so that requests to files in that directory and its subdirectories cannot start the application. Removing a directory from an application boundary does not delete the directory from either your Web site or from your computer's hard disk.

Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /user:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

To create an application

  1. In IIS Manager, expand the local computer, right-click the starting-point directory of the application you are creating, and then click Properties.

  2. Click the appropriate tab: Home Directory, Virtual Directory, or Directory.

  3. In the Application settings area, click Create.

  4. In the Application name box, type a name for your application.

  5. In the Execute Permissions list box, set permissions by doing one of the following:

    • Click None to prevent any programs or scripts from running.

    • Click Scripts only to enable applications mapped to a script engine to run in this directory without having permissions set for executables. Setting permissions to Scripts only is more secure than setting them to Scripts and Executables because you can limit the applications that can be run in the directory.

    • Click Scripts and Executables to allow any application to run in this directory, including applications mapped to script engines and Windows binaries (.dll and .exe files).

  6. Click OK.

Note

If you see the Remove button instead of the Create button, an application has already been created.

To remove a directory from the application

  1. In IIS Manager, expand the local computer, right-click the directory that you want to remove, and then click Properties.

  2. Click the appropriate tab: Home Directory, Virtual Directory, or Directory.

  3. In the Application settings area, click Remove.

Note

To stop an application and unload it from memory, click Unload. If the Unload button is dimmed, you are not in the application's starting-point directory.