IIS
  Home arrow IIS arrow Page 2 - Creating Test and Production Sites with On...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
IIS

Creating Test and Production Sites with Only One IIS Server
By: Justin Cook
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 50
    2004-04-28

    Table of Contents:
  • Creating Test and Production Sites with Only One IIS Server
  • Overview, Step 1
  • Step 2: It Looks Like the Database, and Smells Like the Database
  • Step 3: Configuring IIS
  • Step 4: Code Control

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Creating Test and Production Sites with Only One IIS Server - Overview, Step 1


    (Page 2 of 5 )

    Overview

    OK, so here's an overview of the situation. I had one server, running Windows 2000 Server, running IIS 5.0 with the .NET framework installed. The application was written primarily in ASP, with a small amount of ASP.Net tossed in the mix. The database was MySQL. I determined that to have a true test environment separated from the production, I would need the following:

    A complete copy of the application, including scripts, images, and security settings.

    A completely separate but identically structured database.

    The ability to connect to the application by the same means (web-browser, optional NT Authentication), but perhaps through a slightly different address.

    Control over the code with some sort of versioning system. (optional, but a best-practice nonetheless)

    I remembered that a single instance of IIS 5.0 installed on Windows 2000 Server – but not workstation – was capable of running multiple web sites concurrently. After discussing the options with a the network administrators, we determined that best route would be to run the second application, a.k.a. The Test Server, on another port. This was chosen as the best for several reasons: ease of setup, ease of administration, and the URL would be the same, just with a port number attached to the end. Has your appetite been whetted yet?

    Step 1: Copy the FilesThis was probably the simplest of all the tasks. It involves two parts:

    • deciding on the name of the copied directory
    • copying the files

    As wwwroot is more or less the standard for an applications root directory, I thought that wwwtest or wwwstage are some appropriate names. It's really not that critical though, so listen to your heart when choosing a name. Wow, now that's cheesy.

    Anyhow, the second part of this step is as complicated as the first. Just copy all the files to the new directory. You don't have to worry about installing components or anything, because it's the same server, any components you have installed will work in both applications! Probably the only problem you could encounter here is if you're working on a file while trying to copy it. Make sure all IDEs and graphic editors are closed down, or at least make sure they don't have a hold on any of the files. There, that was simple. Now, on two step 2.

    More IIS Articles
    More By Justin Cook


     

    IIS ARTICLES

    - Retrieving IIS information using ASP.NET 2.0
    - IIS 6.0, Getting Information Using WMI
    - The Importance of a Domain
    - Implementing a PKI, Part II: Configuring IIS...
    - Creating Test and Production Sites with Only...
    - Authentication and Authorization
    - Beefing Up IIS: 10 Tips From A Former Solari...
    - An Introduction To ISAPI
    - Secure Your Web Server With SSL
    - Introduction to HTML and ASP
    - Instructions to help in Designing your own C...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek