Re: code sharing in IIS

2011-07-06 Thread Paul Kukiel

Hi Chad,

Yes you can do this.  We have multiple instances of our application running off 
a single code base across multiple virtual directories.

Paul.


On Jul 5, 2011, at 11:15 PM, Chad Gray wrote:

 
 I have not experimented yet, but can you use a virtual directory in IIS to 
 share code to other website on the server?
 
 Like I have a folder of code for user login on one website.  Rather than 
 copying the code and maintaining two sets of code can I just make a IIS 
 virtual directory on the second website?
 
 Thanks!
 Chad
 
 
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346103
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: code sharing in IIS

2011-07-06 Thread eric.da...@vmmc.org eric.da...@vmmc.org

We do this all the time, and its also how we create multiple IIS sites bound to 
their own CF instances to create multiple instances of a website that we then 
load balance.  I've found this the best way to utilize beefy hardware with 
ColdFusion 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346108
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: code sharing in IIS

2011-07-06 Thread Chad Gray

Thanks for everyone's feedback.

I have a question now that I am experimenting with it.

I have two web sites that have these files in them:

C:\wwwroot\site1\Application.cfc
C:\wwwroot\site1\foo\index.cfm

C:\wwwroot\site2\Application.cfc
C:\wwwroot\site2\foo --(virtual directory to C:\wwwroot\site1\foo)

When I load
http://site2/foo/index.cfm

The application.cfc fromSite1 is being used, not the application.cfc from 
site2...

Any way to get the site2 application.cfc to be used instead of site1?

Thanks,
Chad





 -Original Message-
 From: eric.da...@vmmc.org eric.da...@vmmc.org
 [mailto:eric.da...@vmmc.org]
 Sent: Wednesday, July 06, 2011 12:22 PM
 To: cf-talk
 Subject: Re: code sharing in IIS
 
 
 We do this all the time, and its also how we create multiple IIS sites bound
 to their own CF instances to create multiple instances of a website that we
 then load balance.  I've found this the best way to utilize beefy hardware
 with ColdFusion
 
 ~~~
 ~~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-
 Anthology/dp/1430272155/?tag=houseoffusion
 Archive: http://www.houseoffusion.com/groups/cf-
 talk/message.cfm/messageid:346108
 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe: http://www.houseoffusion.com/groups/cf-
 talk/unsubscribe.cfm


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346116
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: code sharing in IIS

2011-07-06 Thread Andrew Scott

Yep remove the virtual directory, when you do it this way the virtual
directory will be using the application.cfc up from where it is first
located. And that is defined by your virtual directory.


Regards,
Andrew Scott
http://www.andyscott.id.au/



 -Original Message-
 From: Chad Gray [mailto:cg...@careyweb.com]
 Sent: Thursday, 7 July 2011 4:40 AM
 To: cf-talk
 Subject: RE: code sharing in IIS
 
 
 Thanks for everyone's feedback.
 
 I have a question now that I am experimenting with it.
 
 I have two web sites that have these files in them:
 
 C:\wwwroot\site1\Application.cfc
 C:\wwwroot\site1\foo\index.cfm
 
 C:\wwwroot\site2\Application.cfc
 C:\wwwroot\site2\foo --(virtual directory to C:\wwwroot\site1\foo)
 
 When I load
 http://site2/foo/index.cfm
 
 The application.cfc fromSite1 is being used, not the application.cfc from
 site2...
 
 Any way to get the site2 application.cfc to be used instead of site1?
 
 Thanks,
 Chad


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346121
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: code sharing in IIS

2011-07-05 Thread Dave Watts

 I have not experimented yet, but can you use a virtual directory in IIS to 
 share code to other website on the server?

 Like I have a folder of code for user login on one website.  Rather than 
 copying the code and maintaining two sets of
 code can I just make a IIS virtual directory on the second website?

Yes. You will have to create the virtual directory individually for
each site in which you want to use this code.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:346069
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm