Create an IIS 7.5 web site (Windows Server 2008 R2)

Part 1: Creating the site

1.     Launch the Internet Information Services (IIS) Manager on the training server.  This is found by clicking the “Start button”   > Administrative Tools > Internet Information Services (IIS) Manager.
2.     Expand the tree view under the Connections pane—click the ‘+’ next to the server name—and select Sites.

           

3.    Click the “Add Web Site…” link under the Actions pane.

           

4. Fill in the requested information on the Add Web Site form.  Click OK when done.  Below are example values you can use with some notes about the various UI options and OrcsWeb defaults versus Microsoft defaults.

Site name: Test Site (or a name of your choice)

Note: If you watch the “Application pool” name once you leave the site name text box you will see it change to the name of the site.  This is the Add Web Site UI’s default behavior and assists greatly in automatically isolating sites and applications.  You can manually change the application pool to an existing one by clicking the “Select…” button.  Please make a note of the application Pool name for later steps in this training.

Physical path: Click on the “…” button and browse to C:\Domains.  Click the “Make New Folder” button and enter a site name, such as Test Site.

   

Note: OrcsWeb does not use the default IIS physical path for site folders, and not all servers at OrcsWeb use the same default path.  The current standard location for all dedicated servers, virtual or physical, is C:\Domains, but dedicated server clients are welcome use whatever path they prefer.

Binding: Leave these at the default values for now.

Note: For additional reading on bindings, which are very important for advanced site setup, please read this link: https://support.orcsweb.com/KB/a308/iis-site-bindings.aspx

You should now have a site listed in IIS Manager.  From the “Sites” view you should now have something like this in the main pane of IIS Manager.


Part 2: Permissions and testing

5.     Find the Identity used by the site’s application pool.

a.       Select your site from the Sites list in the left tree view.

b.      Click Basic Settings on the Actions pane on the right.

c.       Make note of the “Application Pool:” name and click Cancel.

d.      Select the Edit Permissions… link in the Actions pane.

e.      Go to the Security tab.

f.        Edit

g.       Add

h.      Locations…

i.         Select your server, which is the topmost item in the tree view list, and click OK.

j.        Under “Enter the object names to select” enter: IIS APPPOOL\<App Pool Name>

                         i.      The IIS APPPOOL\ part *is* case sensitive and must be entered in all upper case

                         ii.      Replace <App Pool Name> with the actual application pool name from step 5c, without the <>.  Example: IIS APPPOOL\Test Site

k.       Make sure your application pool name is selected under “Group and user names:” and then click the box labeled Modify under the Allow column in the “Permissions for <App Pool Name>” section.

l.         OK, OK

6.     Alternate Method: Command line

               a.      Open the Command Prompt from the Start menu

               b.      Use the icacls.exe command to grant the appropriate permissions.

Structure:

icacls <path> /grant “<object>”:(OI)(CI)(M)

Example:

icacls “C:\Domains\Test Site” /grant “IIS APPPOOL\Test Site”:(OI)(CI)(M)

               c.      Close the command prompt

7.     Create a test site.

a.       Click on Explore from the Actions pane

b.      Create a file called default.aspx

c.       Add the following to the body of the file.

<HTML><BODY>This is [your name]’s training web site.</BODY></HTML>

8.     Save the file and test the site.  To quick launch the site look for Browse Web Site section under the Actions pane and click the link “Browse *:80: (http)” below that.


Article ID: 324, Created On: 8/23/2010, Modified: 5/24/2012