Sunday 1 July 2012

How to add a website in IIS7 Windows 2008

Prerequisite : Creating a website

Create a folder "website" in C: drive
Open a Notepad and copy paste the following code.

<html>
<body bgcolor="lightgreen">
<marquee behavior="alternate">
<h2>
Welcome to the home page of 
<font color="red">ciots.blogspot.com</font>
</h2>
</marquee>
</html>


Save the file in the website folder inside C: drive as "home.html"


Step 1 : Install Role Web Server (IIS)

Go to Server Manager
Click on Roles Node
Click Add Roles (Right side of the screen) -> Next
Select Web Server (IIS) -> Add Required Features


Next -> Next -> Next -> Install

Step 2 : Adding Website in Internet Information Service (IIS) Manager

Start -> Administrative Tools -> Internet Information Service (IIS) Manager
Expand SERVER(MCITP\Administrator) Node
Right Click on Sites -> Add Web Site


Enter the following details.
Site Name: test.
Application pool: IIS7 will automatically create a unique application pool based on your site name.
Physical Path:  The directory on the server that your web site content is stored in. (C:\Website)
Binding: This is necessary for running multiple websites from the same IP address.
Type: Leave at http
IP Address: Choose the IP address the domain name resolves to that you configured in DNS.
Port: Leave at 80
Host Name: Type in your domain name without the www. (mcitp.com)

OK.

Enable Directory Browsing
Expand Sites Node
Select test
Double Click on Directory Browsing


Click Enable (on the extreme right of the screen)

Delete Default Documents & make entry for home.html

Click on test
Double Click on Default Documents



Delete all the documents
Right Click -> Add
Write : home.html
OK



Start the test web site
Select Default Web Site and Stop it
Select test web site and Start it

Step 3 : Access the web page from client machine

Note: The client machine is already connected with the server and it is not in domain.

Start Internet Explorer (or any other browser)
Type URL : http://mcitp.com
and press Enter.
The web page is in front of you.

No comments:

Post a Comment

Your comments are very much valuable for us. Thanks for giving your precious time.

Do you like this article?