You can host your web page in your local system using Internet Information Services(IIS). How..??
Go to Internet Explorer type "http://localhost/", you will get one Image on your Browser. That is the default site hosted in your system on IIS. To see that file's physical location go to C:\inetpub\wwwroot, there you can see MyStart.htm file which will be running as localhost.
Go to Internet Explorer type "http://localhost/", you will get one Image on your Browser. That is the default site hosted in your system on IIS. To see that file's physical location go to C:\inetpub\wwwroot, there you can see MyStart.htm file which will be running as localhost.
How can I host my site on IIS?
Its easy...Follow the steps below. This blog is with respect to Windows 7(IIS 7).
Step 1:
Before you think about hosting, make sure that IIS has been installed in your system by typing 'inetmgr' in run command(Start->type run->Select Run). If it will opens IIS Manager window then you need not to worry, go to Step 3. If not, go to Step 2.
Step 2:
Start->Control Panel->Programs->Turn windows features on or off (Under Programs and Features)->Select "Internet Information Services" check box in Windows Features window->Click OK.
Now goto Step 1.
Step 3:
Expand all the Tree structure in the left Connection pane of the IIS Window to see 'Sites' node as in the below figure.
Step 1:
Before you think about hosting, make sure that IIS has been installed in your system by typing 'inetmgr' in run command(Start->type run->Select Run). If it will opens IIS Manager window then you need not to worry, go to Step 3. If not, go to Step 2.
Step 2:
Start->Control Panel->Programs->Turn windows features on or off (Under Programs and Features)->Select "Internet Information Services" check box in Windows Features window->Click OK.
Now goto Step 1.
Step 3:
Expand all the Tree structure in the left Connection pane of the IIS Window to see 'Sites' node as in the below figure.
Fig 1: IIS Manager
- Right click on 'Sites' node->Add Web Site.. in IIS Manager.
- Add Web Site Window will be opened as seen in Fig 2.
- Enter Site Name(any name).
- Leave Application pool as it is.
- Click Browse Button to select the folder which contains your web page file and select it.
- Leave Type and IP Address fields under Binding as it is. But Change Port to any other port number which is not being used.
- Don't give Host Name. Click OK.
Fig 2: Add Web Site Window
- Now your website is ready to launch.
- Right click on you site name under Sites in IIS Manager window(here it is TestSite)->Manage Website->Browse.
- Internet Explorer will get opened with URL- http://localhost:<Port>/
- Click on your web page file displayed on the browser or append that file name to URL.
- Now your page will be displayed on the browser as shown below.
Fig 3: Web Page in Browser
Thats it...
Please put your Valuable comments if you get any issues..
Coming Next: Hosting .Net pages On IIS.
No comments:
Post a Comment