IIS: Creating a web site for testing in IIS Server


Previous Topic Previous Next Topic Next
Xoc Software
Training
RVBA Conventions
Maya Calendar Program
Company Information
Tools
ASP.NET and Other Tips
.NET: Debugging Designer Features of a Custom Control in Visual Studio
.NET: Setting the Default Font in a Windows Mobile/Compact Framework Custom Control
.NET Fixing C# XML Comments so they Work in Windows XP SP2
.NET: Getting and Setting the Application Version Number
.NET: Getting the Path of the Executing Assembly
.NET: Retrieving Assembly Attributes
.NET: Setting the RootFolder to Other Values in the FolderBrowserDialog in .NET
.NET: Sizing Columns in a ListView Control in .NET
.NET: Using Remoting in .NET
ASP.NET: Constructing a Graphic on the Fly in ASP.NET
ASP.NET: Controlling Caching in ASP.NET Web Forms
ASP.NET: How to use the FrontPage Server Extensions with ASP.NET
ASP.NET: Seeing What is in the ViewState in ASP.NET Web Forms
ASP.NET: Using Forms Authentication in ASP.NET
ASP.NET: View Trace Information on your ASP.NET Web Pages
ASP: Create XML from an ADO query
ASP: Detect Incomplete Loads
ASP: Including an ASP.NET Web Page In a Classic ASP Web Page
ASP: Process .HTM Files with Scripts and Server Side Includes
ASP: QuickSort Algorithm
ASP: Retrieve all server variables from IIS
ASP: Send Email from Active Server Page
HTML: How to Create a Non-Scrolling Region in HTML
IE: Allowing Only Certain ActiveX Controls to Run in Internet Explorer
IIS: Creating a web site for testing in IIS Server
IIS: Creating Multiple Web Sites within IIS on Windows 2000 and Windows XP Professional
IIS: IIS/Visual InterDev Problems and Fixes
IIS: Redirect a domain such as xoc.net to www.xoc.net
SQL Server: Execute SQL Server Updategram
Web Design: Design for People with Disabilities
Web Design: Keep a Web Page out of the Google Cache
Windows: Get HTTP Header of a Web Page using Telnet
Windows: Testing Domain Names without DNS
Windows: Using Hosts File to Access Web Sites with XP SP2
Windows: Windows XP Command Line Tools
Windows Mobile: Reprogramming the Push-to-Talk Button on the AT&T Tilt
Articles
Miscellaneous
Downloads
Links
Search
Email

Other Xoc managed sites:
http://grr.xoc.net
http://www.986faq.com
http://www.mayainfo.org
https://mayacalendar.xoc.net
http://www.yachtslog.com

To configure a site on local IIS Server for testing, say, www.domain.com, use these steps:

  1. In IIS Manager, create the new site. This puts the site into IIS.
    1. Right click on the machine name.
    2. Create a new folder on the hard disk named 'c:\Inetpub\www-domain-com'.
    3. Select New | Web Site from the menu. Press Next in the wizard.
    4. Type a description of the web site. For www.domain.com, use www-domain-com. Press Next.
    5. For the host headers, use lwww.domain.com. Press next.
    6. Enter the directory you created.
    7. Allow read and run scripts, the default. Press next to complete the wizard.
  2. Install the FrontPage Server Extensions on the web site. This allows Microsoft tools to modify files on the web server.
    1. Right click on www-domain-com and select All Tasks | Configure Server Extensions. Press next.
    2. Click next through the remaining pages of the wizard.
  3. Make an entry in the Hosts file on your machine for the new web site. This allows you to test the domain on the local machine without having to configure DNS for the domain.
    1. Open the file 'c:\<windows directory>\system32\drivers\etc\hosts.' in notepad.
    2. Add a line that has
      127.0.0.1 lwww.domain.com
      .
    3. Save the file.
  4. If you use a proxy server, you must configure Windows so that it doesn't try to use DNS to resolve the domain name.
    1. Open the Windows Control Panel.
    2. Double-click on Internet Options.
    3. Change to the Connections tab.
    4. Press the Lan Settings button.
    5. Press the Advanced button.
    6. Add lwww.domain.com to the exceptions box.
    7. Close all the dialogs.
  5. You will now be able to use the lwww.domain.com web site on the local machine. You will have do also do some configuration on the production web server to be able to post the web site to it.

Top