What web server are you running? I know some versions of IIS won't let you
set up multiple webroots but there are creative ways to get around that so
that you can run multiple site roots instead of running it all under the
same root.
 
If this way would work for you then here is the way:
 
------------------------------------


In the server versions of Windows, you can have multiple versions of web
sites installed into IIS and running simultaneously. You can install and run
more than one web site within IIS in the professional version of Windows XP
or Windows 2000. You just have to pull a trick to modify the IIS metabase to
that it is aware of the additional sites. The user interface does not
support creating more than one web site. Also, you still will not be able to
have more than one site running at the same time.

To create the second web site: 


*       Create a command prompt window. 

*       Type "cd \Inetpub\Adminscripts" and press enter. 

*       Find out what the highest numbered site you currently have is. You
can do that by typing 

        adsutil.vbs ENUM /P W3SVC 


        If you have never done this process before, the highest numbered
site should be 1. 
*       Add one to the highest numbered site. Then run this command: 

        adsutil.vbs COPY W3SVC/1 W3SVC/x


        Where x is replaced by the new numbered site. For example if you run
the enum command and the highest numbered site is 4, then type this: 
        adsutil.vbs COPY W3SVC/1 W3SVC/5


*       Run the IIS Manager. You should find a new site has been created. It
will be an exact copy of site #1, so you will need to change a few things.
Go into the properties for the web site. Change the site name, and the
virtual directory for the root of the web site to point to another location
on the hard disk. Usually, you will create a new subdirectory under Inetpub
and point the virtual directory at that. 

*       To use the site, you must first stop the currently running site,
then start the new site. 

To delete a site, first stop it if it is running (bad things happen if you
don't!). Then type: 

adsutil.vbs DELETE W3SVC/x



Where x is the number of the site you want to delete.

You can find the number for an existing web site in IIS Manager by enabling
logging and examining the logging properties. The web site number is at the
bottom of the dialog.

------------------------------------------------------


  _____  

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Clarke Bishop
Sent: Friday, May 25, 2007 3:07 PM
To: discussion@acfug.org
Subject: [ACFUG Discuss] Production vs. Development Directory Structure and
Referencing Files


I have continuously struggled with organizing files and setups between my
production and development environments.
 
I'm working with a number of sites, and each of them is usually on a shared
host. On my development machine I have directories for each site.
 
Development                Production
 
webroot/Site1/              / (The webroot for this site)
webroot/Site2/              / (The webroot for this site)
webroot/Site3/              / (The webroot for this site)
 
My question is the best way to reference various files with this situation.
Say I've got an /include/ directory that needs to be loaded with pages in
the site's root or in sub-directories. What's the best way to do this.
 
One way, I've managed this is to setup a session variable, SESSION.webroot
that gets loaded onAppStart by Application.cfc. Then I can just reference
the directory as #SESSION.webroot#include/filename.cfm.
 
It just seems like there ought to be a better way to reference common
directories like include, images, etc. 
 
What's the best practice?
 
Thanks,
 
   Clarke

------------------------------------------------------------- 
Annual Sponsor - Figleaf Software <http://www.figleaf.com>  

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform 

For more info, see http://www.acfug.org/mailinglists 
Archive @ http://www.mail-archive.com/discussion%40acfug.org/ 
List hosted by FusionLink <http://www.fusionlink.com>  
------------------------------------------------------------- 



-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com

To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to