|
Configuring Websites in Windows .NET Server/IIS 6.0
At times there might be situations where you need to host your ASP.NET applications
from your corporate server or your own machine. A scenario where this
might be needed is when you have large amounts of data on your Web site and you
are concerned about the big bucks your hosting provider will charge you for disk space,
bandwidth and database maintenance. Internet Information Services 6 (IIS 6) can
be used for hosting your Web site. IIS 6 is a powerful platform for hosting Web
sites. Creating and configuring Web sites and Virtual Directories using IIS are as
easy as 1-2-3. In this section we will see how we can create a Website using IIS 6.0
and configure it.
Creating a Website
The first thing you need before creating a Web site using IIS 6.0 is a unique
IP address that identifies your computer on the network. This address takes the form
of a string of four numbers separated by periods (.). For your site to be up and running
you also need a connection to the Internet. You need to lease a line from an Internet
Service Provider (ISP) or a telephone company. When you open IIS Manager in Administrative
Tools and select Web sites in the console tree, and right-click on default Web site
and open it's properties you will find that the IP address for the default Web site
is All Unassigned. This means any IP address not specifically
assigned to another Web site on the machine opens the Default Web site instead. A
typical use for the Default Web site is to display general information like a corporate
logo and contact information.
Let's assume that we will use the IP address 169.16.13.211 for creating Startvbdotnet.com
and C:\Startvbdotnet is the folder where the homepage for this site is located. To
create the Startvbdotnet Web site, right-click on the Web Sites node and select New->Web
Site to start the Web Site Creation Wizard as shown in the images below.
Click Next on the Web site creation wizard dialog and type a description for the site
as shown in the image below.
After typing the description click next to open the dialog where you need to specify
the IP address and port number for your Web site. As mentioned above, type 169.16.13.211
in the IP address textbox and 80 in the TCP port textbox. The dialog looks like the
image below.
Click Next and specify C:\Startvbdotnet as the home directory for the site. Notice
the checkbox that says "Allow anonymous access to this Web site".
By default, it is checked, which means the Web site which
we are creating is accessible by general public on the Internet. If you are creating
an intranet site which will be used only by authenticated users then you need to uncheck
this checkbox. The image below displays that.
Click Next to get to the Web Site Access Permissions dialog. By default, the Read
and Run scripts checkboxes are checked which means that your Web site will run scripts
such as ASP and is only a read-only Web site where users can't make changes to it.
If you want users to download content from your Web site, modify it and upload the
modified content then you need to check the Write checkbox. The image below displays
that.
Click Next and then Finish to create the new Web site. The image below displays the
new Web site which we created in IIS.
Next>>Creating Virtual Directories
|