OS Configurations‎ > ‎Windows XP‎ > ‎

Configure IIS 5.1


How to install your own IIS server

Once installation has completed, point a browser to http://localhost Opens a new window or http://127.0.0.1 Opens a new window With a successful install, you should see the page below... easy cheesy wasn't it? Rock'in! Way ta go playa! You can also access your server home page if you know your computer's IP address or computer name. From a Command Prompt you can type ipconfig or ping localhost to find out that info if you are curious. Before we conclude, we need to do a few more things. Next we need to know how to configure and control the default document serving order and create our own server home page. Scroll on down for this next step.

Windows Localhost


Change the default document serving order


Let's configure the default document serving order and create our own server home page. Go to Control Panel -> Administrative Tools -> Internet Information Services. Expand the local computer directory, then right click on Default Web Site and select Properties from the cascade.


Windows Default Document Settings

After the Properties panel opens, select the Documents tab. In the Default Document listing box use the Add button to add index.htm and index.html. Now use the up and down arrow buttons on the left side to reorder the listing. Place the index.htm and index.html at the top and either move down or remove the iisstart.asp listing. Make sure you remember to hit the Apply button. Now whenever you place an index.htm in any folder, the web server will know that it's the default document and if available, it will serve it first in the directory.

Windows Properties


Create a server home page


Using Notepad or Dreamweaver, just write a simple index.htm test document and then save it into your C:\Inetpub\wwwroot directory.

<html>
<head>
<title>Home page test</title>
</head>
<body>
<div align="center">Cool! My own server home page.</div>
</body>
</html>

With a browser navigate to http://localhost Opens a new window You should now see your index.htm test page.

Index test page

 


Using Notepad or Dreamweaver, write the following and then save it into your C:\Inetpub\wwwroot\ directory.

<html>
<head>
<title>ASP page test</title>
</head>
<body>
<div align="center">
<% Response.Write("My ASP test page works. Were there any doubts?") %>
<br>
<br>
<% response.write(Request.ServerVariables("SERVER_SOFTWARE")) %>
</div>
</body>
</html>

With a browser, navigate to http://localhost/nodoubt.asp Opens a new window You should now see your nodoubt.asp page. When the server sees the .asp extension, it knows to run through the test page and process any code surrounded by <% %> delimiters before releasing the page to the browser. Special note: The last version of ASP was version 3.0, and the next generation has now moved to ASP.NET, but it's still useful to understand how to use and write in ASP 3.0. Once you have a firm grasp of ASP 3.0 you can then move on to ASP.NET.

ASP test page

How to change the TCP port for IIS services

http://support.microsoft.com/kb/149605

Creating Multiple Sites Using Ports

http://technet.microsoft.com/en-us/library/cc758137(WS.10).aspx

References

http://www.iisanswers.com/IISFAQ.htm



Comments