programming4us
programming4us
WEBSITE

Windows Server 2008 : Installing and Configuring Websites (part 1) - Creating a Website with IIS 7.5 & Creating a Virtual Directory

2/24/2011 11:45:07 AM
IIS can support thousands of websites on a single web server. The number of websites that you have depends on the way the system is configured, including the number of processors, the amount of RAM, bandwidth, and more. For every website that the system supports for the Internet, there must be a public IP address and registered domain name. However, if you have only one public IP address and you want to support other websites, you can also create virtual directories or leverage host headers to have those sites serving users on the Internet.

Creating a Website with IIS 7.5

The Default Web Site is located within the Web Sites folder in the IIS snap-in. You can use the Default Web Site to publish content, but it is possible to create and configure a separate website.

To begin creating a new website, do the following:

1.
In Internet Information Services (IIS) Manager, right-click on the Sites node in the Connections pane, and click Add Web Site.

2.
The Add Web Site page is opened; enter a website name such as NewWebSite.

3.
If desired, click the Select button in the Application Pool section to modify the Application Pool settings for this new site. The default application pool drop-down option available is DefaultAppPool.

4.
In the Content Directory section, enter the physical path to where the Web Sites folder resides. Alternatively, navigate to the folder by clicking the ellipses button.

Note

A user can also choose a remote share when providing the location of the content directory’s physical path. If a remote share is used, you must ensure IIS has access to that folder by clicking the Connect As button and specifying connectivity to the remote share by choosing a specific user account that has appropriate permissions or you can select the Pass-Through Authentication option.

5.
You must now specify whether this new site will use HTTP or HTTPS, provide an IP address to the new site or leave the IP Address setting unassigned, and indicate which port this new site will listen on. These settings are configured in the Binding section of the Add Web Site page.

6.
An optional setting can be configured before completing the page. A user can enter a host header for the new site, such as www.companyabc.com.

7.
Check the option to start the website immediately.

8.
Review all the configuration settings inputted, as illustrated in Figure 1, and then click OK to finalize the creation of the new website.

Figure 1. Reviewing the settings in the Add Web Site dialog box.


Creating a Virtual Directory

Virtual directories extend the home directory of your website by providing an alias linking another directory not contained within the home directory. This alias will appear to users as simply a subfolder to the website even though it might be located on an entirely different server.

The virtual directory can contain documents and other information for the website as well as a new website. For example, if CompanyABC’s website (www.companyabc.com) wants to host a temporary website for another organization, it could use a virtual directory to contain the website. In this scenario, CompanyXYZ would have its own website located at www.companyabc.com/companyxyz/. You must have Web Server Administrator, Web Site Administrator, or Web Applications Administrator privileges to create a virtual directory.

To create a virtual directory using the IIS Manager, do the following:

1.
Select Start, All Programs, Administrative Tools, Internet Information Services (IIS) Manager.

2.
In the Connections pane, expand the IIS server, and then expand the Sites node within the tree.

3.
Select the desired website that will contain the new virtual directory. Right-click the website, and select Add Virtual Directory.

4.
Enter the virtual directory’s alias, such as Images.

5.
Enter the physical path to the content folder of the virtual directory, or alternatively, navigate to the folder by clicking the ellipses button.

6.
Review the settings, as displayed in Figure 2, and click OK to finalize the creation of the virtual directory.

Figure 2. Add Virtual Directory dialog box.


Note

If the content folder specified is a remote share, click Connect As and enter credentials for an account that has permissions to access the remote share. Alternatively, select the application user (Pass-Through Authentication) option.


Other  
 
Video
PS4 game trailer XBox One game trailer
WiiU game trailer 3ds game trailer
Top 10 Video Game
-   Minecraft Mods - MAD PACK #10 'NETHER DOOM!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
-   Minecraft Mods - MAD PACK #9 'KING SLIME!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
-   Minecraft Mods - MAD PACK #2 'LAVA LOBBERS!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
-   Minecraft Mods - MAD PACK #3 'OBSIDIAN LONGSWORD!' with Vikkstar & Pete (Minecraft Mod - Mad Pack 2)
-   Total War: Warhammer [PC] Demigryph Trailer
-   Minecraft | MINIONS MOVIE MOD! (Despicable Me, Minions Movie)
-   Minecraft | Crazy Craft 3.0 - Ep 3! "TITANS ATTACK"
-   Minecraft | Crazy Craft 3.0 - Ep 2! "THIEVING FROM THE CRAZIES"
-   Minecraft | MORPH HIDE AND SEEK - Minions Despicable Me Mod
-   Minecraft | Dream Craft - Star Wars Modded Survival Ep 92 "IS JOE DEAD?!"
-   Minecraft | Dream Craft - Star Wars Modded Survival Ep 93 "JEDI STRIKE BACK"
-   Minecraft | Dream Craft - Star Wars Modded Survival Ep 94 "TATOOINE PLANET DESTRUCTION"
-   Minecraft | Dream Craft - Star Wars Modded Survival Ep 95 "TATOOINE CAPTIVES"
-   Hitman [PS4/XOne/PC] Alpha Gameplay Trailer
-   Satellite Reign [PC] Release Date Trailer
Game of War | Kate Upton Commercial
programming4us
 
 
programming4us