Re: Multiple applications with a single codebase issues

2011-02-20 Thread Pete Ruckelshaus

OK, I have a single, but major, issue remaining.  I have all of my variable
issues resolved, and I have confirmed that the issue I am seeing is not an
IIS issue (at least I'm pretty darned sure it's not), but rather seems to be
a ColdFusion issue.

I am using a common directory path for each site's root: i.e.
c:\inetpub\wwwroot\app\core\ is set as the root path for site1, site2, and
site3.

Each site than has a unique directory set as the /site mapped directory,
i.e. site1 has C:\inetpub\wwwroot\site1\ mapped as /site, site2
has C:\inetpub\wwwroot\site2\ mapped as /site, etc.

The problem is with the look-and-feel template for each site.  I'm using a
custom tag to set the user interface.  At the top of each page contained in
the core site (the code that is common across all sites), I use cfimport to
link (for lack of a better term) to the custom tag directory:

cfimport taglib=/site/extensions/custom_tags/ prefix=site

I then call the UI template thusly:

site:uitemplate

for the top of the template, and /site:uitemplate for the bottom of
the template.

The problem is that after restarting the server, the first site loaded
(site1, for arguments' sake) displays its template just fine.  However, when
going to site2, those assets controlled by the paths in IIS (i.e. the
site-specific CSS that resides in /site/assets/global.css) are displayed
fine, but those assets that are specifically defined in the template (i.e.
images that are specific to the site and are defined in that site's UI
custom tag) are being displayed in the HTML as the template for site1 even
when trying to access site2.

Needless to say, this has me mystified and confused, and pulling my hair out
just a bit.  I turned off ALL caching in CF Administrator and restarted the
server, and the issue is still happening.

Any idea of what I'm doing wrong, or even just things I should be trying to
resolve this?  I've spent at least a day trying to get this figured out, to
no avail.

Thanks,

Pete


~|
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:342455
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Multiple applications with a single codebase issues

2011-02-20 Thread Michael David

In the CF Admin, do you have Cache web server paths checked?  If so, disable
that.


On Sun, Feb 20, 2011 at 11:35 AM, Pete Ruckelshaus
pruckelsh...@gmail.comwrote:


 OK, I have a single, but major, issue remaining.  I have all of my variable
 issues resolved, and I have confirmed that the issue I am seeing is not an
 IIS issue (at least I'm pretty darned sure it's not), but rather seems to
 be
 a ColdFusion issue.

 I am using a common directory path for each site's root: i.e.
 c:\inetpub\wwwroot\app\core\ is set as the root path for site1, site2, and
 site3.

 Each site than has a unique directory set as the /site mapped directory,
 i.e. site1 has C:\inetpub\wwwroot\site1\ mapped as /site, site2
 has C:\inetpub\wwwroot\site2\ mapped as /site, etc.

 The problem is with the look-and-feel template for each site.  I'm using a
 custom tag to set the user interface.  At the top of each page contained in
 the core site (the code that is common across all sites), I use cfimport to
 link (for lack of a better term) to the custom tag directory:

 cfimport taglib=/site/extensions/custom_tags/ prefix=site

 I then call the UI template thusly:

 site:uitemplate

 for the top of the template, and /site:uitemplate for the bottom of
 the template.

 The problem is that after restarting the server, the first site loaded
 (site1, for arguments' sake) displays its template just fine.  However,
 when
 going to site2, those assets controlled by the paths in IIS (i.e. the
 site-specific CSS that resides in /site/assets/global.css) are displayed
 fine, but those assets that are specifically defined in the template (i.e.
 images that are specific to the site and are defined in that site's UI
 custom tag) are being displayed in the HTML as the template for site1 even
 when trying to access site2.

 Needless to say, this has me mystified and confused, and pulling my hair
 out
 just a bit.  I turned off ALL caching in CF Administrator and restarted the
 server, and the issue is still happening.

 Any idea of what I'm doing wrong, or even just things I should be trying to
 resolve this?  I've spent at least a day trying to get this figured out, to
 no avail.

 Thanks,

 Pete


 

~|
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:342456
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Multiple applications with a single codebase issues

2011-02-20 Thread Pete Ruckelshaus

Yes, that was the first thing I disabled in CF Admin.

On Sun, Feb 20, 2011 at 11:57 AM, Michael David li...@michaeldavid.comwrote:


 In the CF Admin, do you have Cache web server paths checked?  If so,
 disable
 that.


 On Sun, Feb 20, 2011 at 11:35 AM, Pete Ruckelshaus
 pruckelsh...@gmail.comwrote:

 
  OK, I have a single, but major, issue remaining.  I have all of my
 variable
  issues resolved, and I have confirmed that the issue I am seeing is not
 an
  IIS issue (at least I'm pretty darned sure it's not), but rather seems to
  be
  a ColdFusion issue.
 
  I am using a common directory path for each site's root: i.e.
  c:\inetpub\wwwroot\app\core\ is set as the root path for site1, site2,
 and
  site3.
 
  Each site than has a unique directory set as the /site mapped directory,
  i.e. site1 has C:\inetpub\wwwroot\site1\ mapped as /site, site2
  has C:\inetpub\wwwroot\site2\ mapped as /site, etc.
 
  The problem is with the look-and-feel template for each site.  I'm using
 a
  custom tag to set the user interface.  At the top of each page contained
 in
  the core site (the code that is common across all sites), I use cfimport
 to
  link (for lack of a better term) to the custom tag directory:
 
  cfimport taglib=/site/extensions/custom_tags/ prefix=site
 
  I then call the UI template thusly:
 
  site:uitemplate
 
  for the top of the template, and /site:uitemplate for the bottom of
  the template.
 
  The problem is that after restarting the server, the first site loaded
  (site1, for arguments' sake) displays its template just fine.  However,
  when
  going to site2, those assets controlled by the paths in IIS (i.e. the
  site-specific CSS that resides in /site/assets/global.css) are displayed
  fine, but those assets that are specifically defined in the template
 (i.e.
  images that are specific to the site and are defined in that site's UI
  custom tag) are being displayed in the HTML as the template for site1
 even
  when trying to access site2.
 
  Needless to say, this has me mystified and confused, and pulling my hair
  out
  just a bit.  I turned off ALL caching in CF Administrator and restarted
 the
  server, and the issue is still happening.
 
  Any idea of what I'm doing wrong, or even just things I should be trying
 to
  resolve this?  I've spent at least a day trying to get this figured out,
 to
  no avail.
 
  Thanks,
 
  Pete
 
 
 

 

~|
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:342457
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Multiple applications with a single codebase issues

2011-02-20 Thread Russ Michaels

from what you have said it sounds like the CFIMPORT is getting the wrong set
of tags, either that or your tags are the right ones but are loading files
from the wrong path,

If you turn on the debugging output it should show you where the files are
being loaded from which will tell you whether it is the cfimport or not. If
it is not the cfimport then you need to look at your UI tags and see why
they are loading files formt he wrong site, where are the paths coming from
?

Russ

On Sun, Feb 20, 2011 at 5:15 PM, Pete Ruckelshaus pruckelsh...@gmail.comwrote:


 Yes, that was the first thing I disabled in CF Admin.

 On Sun, Feb 20, 2011 at 11:57 AM, Michael David li...@michaeldavid.com
 wrote:

 
  In the CF Admin, do you have Cache web server paths checked?  If so,
  disable
  that.
 
 
  On Sun, Feb 20, 2011 at 11:35 AM, Pete Ruckelshaus
  pruckelsh...@gmail.comwrote:
 
  
   OK, I have a single, but major, issue remaining.  I have all of my
  variable
   issues resolved, and I have confirmed that the issue I am seeing is not
  an
   IIS issue (at least I'm pretty darned sure it's not), but rather seems
 to
   be
   a ColdFusion issue.
  
   I am using a common directory path for each site's root: i.e.
   c:\inetpub\wwwroot\app\core\ is set as the root path for site1, site2,
  and
   site3.
  
   Each site than has a unique directory set as the /site mapped
 directory,
   i.e. site1 has C:\inetpub\wwwroot\site1\ mapped as /site, site2
   has C:\inetpub\wwwroot\site2\ mapped as /site, etc.
  
   The problem is with the look-and-feel template for each site.  I'm
 using
  a
   custom tag to set the user interface.  At the top of each page
 contained
  in
   the core site (the code that is common across all sites), I use
 cfimport
  to
   link (for lack of a better term) to the custom tag directory:
  
   cfimport taglib=/site/extensions/custom_tags/ prefix=site
  
   I then call the UI template thusly:
  
   site:uitemplate
  
   for the top of the template, and /site:uitemplate for the bottom
 of
   the template.
  
   The problem is that after restarting the server, the first site loaded
   (site1, for arguments' sake) displays its template just fine.  However,
   when
   going to site2, those assets controlled by the paths in IIS (i.e. the
   site-specific CSS that resides in /site/assets/global.css) are
 displayed
   fine, but those assets that are specifically defined in the template
  (i.e.
   images that are specific to the site and are defined in that site's UI
   custom tag) are being displayed in the HTML as the template for site1
  even
   when trying to access site2.
  
   Needless to say, this has me mystified and confused, and pulling my
 hair
   out
   just a bit.  I turned off ALL caching in CF Administrator and restarted
  the
   server, and the issue is still happening.
  
   Any idea of what I'm doing wrong, or even just things I should be
 trying
  to
   resolve this?  I've spent at least a day trying to get this figured
 out,
  to
   no avail.
  
   Thanks,
  
   Pete
  
  
  
 
 

 

~|
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:342458
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Multiple applications with a single codebase issues

2011-02-09 Thread Steve 'Cutter' Blades

Thanks Steve! It's still a work in progress. Lot more posts to go on 
this one...

Steve 'Cutter' Blades
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer

http://blog.cutterscrossing.com

Co-Author Learning Ext JS 3.2 Packt Publishing 2010
https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

The best way to predict the future is to help create it


On 2/8/2011 10:23 PM, Steve Bryant wrote:
 You can accomplish that by using the domain name (CGI.SERVER_NAME) to figure 
 the ApplicationName, for example (perhaps not directly though).

 Also check out the Many Sites, Single Codebase blog series by Steven 
 Cutter Blades:
 http://blog.cutterscrossing.com/index.cfm/2011/1/13/Many-Sites-One-Codebase

 It has great stuff so far!

 Steve

 Pete... see my other note... you can fix this by insure the name of the app
 is different for each URL... not tough at all :)
 

~|
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:342044
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Multiple applications with a single codebase issues

2011-02-09 Thread Trevor Orr

This is what I did when I had the same issue, I had 10 sites running of the 
same code base and set the application name based on the CGI.SERVER_NAME 
variable.

If CGI.SERVER_NAME was www.xyz.com then application name = xyz


-Original Message-
From: Steve Bryant [mailto:st...@bryantwebconsulting.com] 
Sent: Tuesday, February 08, 2011 8:24 PM
To: cf-talk
Subject: Re: Multiple applications with a single codebase issues


You can accomplish that by using the domain name (CGI.SERVER_NAME) to figure 
the ApplicationName, for example (perhaps not directly though).

Also check out the Many Sites, Single Codebase blog series by Steven Cutter 
Blades:
http://blog.cutterscrossing.com/index.cfm/2011/1/13/Many-Sites-One-Codebase

It has great stuff so far!

Steve

Pete... see my other note... you can fix this by insure the name of the app
is different for each URL... not tough at all :) 



~|
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:342075
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Multiple applications with a single codebase issues

2011-02-08 Thread Pete Ruckelshaus

I'm having a bit of an issue here.

Over time, I have developed a CF web-based content management system (hey,
who hasn't?).  The software is currently running a handful of sites, all on
different web hosts.  It works fine in this mode.

Recently, I realized that I could get a VPS for less money than the several
web hosting accounts I'm using; this would have the added benefit of
allowing me to update the core software in one location rather than in
several.

I have it set up so that IIS sees the root directory of the CMS software as
each web sites' root, and then I set up a virtual directory to the
site-specific content for each domain.  For instance,
c:\inetpub\wwwroot\app\core is set as the root directory; in it, I have an
application.cfc file that sets up variables, security, etc.  For
site-specific stuff in the application.cfc, I am including a file that sets
the app name, etc. before the onApplicationStart() runs.

I then have the site-specific stuff (templates, config files, etc.) in
separate directory paths, each set up mapped to /site as virtual directories
for their respective web sites.

The problem I am having is that application.applicationname is being set to
whatever site loads first; i.e., I have SiteA and SiteB set up in IIS,
restart CF, and if I load SiteB first, then SiteA has SiteB's
application.applicationname value.

This is a problem.

Has anyone here tried to do this and succeeded?  Or do I need to rethink how
I have this site architected?

Thanks,

Pete


~|
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:342018
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Multiple applications with a single codebase issues

2011-02-08 Thread Dave Watts

 I have it set up so that IIS sees the root directory of the CMS software as
 each web sites' root, and then I set up a virtual directory to the
 site-specific content for each domain.

Perhaps you could reverse this - set up the root directory of each
virtual server to be site-specific, then create a virtual directory
within each that uses the CMS software core directory.

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:342019
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Multiple applications with a single codebase issues

2011-02-08 Thread William Seiter

I had a similar issue that came up a couple of years ago for me.  As it turned 
out I had the name of the application the same across all of the sites, so the 
application variables weren't unique to each site.


--
William E. Seiter


On Feb 8, 2011, Pete Ruckelshaus pruckelsh...@gmail.com wrote: 


I'm having a bit of an issue here.

Over time, I have developed a CF web-based content management system (hey,
who hasn't?).  The software is currently running a handful of sites, all on
different web hosts.  It works fine in this mode.

Recently, I realized that I could get a VPS for less money than the several
web hosting accounts I'm using; this would have the added benefit of
allowing me to update the core software in one location rather than in
several.

I have it set up so that IIS sees the root directory of the CMS software as
each web sites' root, and then I set up a virtual directory to the
site-specific content for each domain.  For instance,
c:\inetpub\wwwroot\app\core is set as the root directory; in it, I have an
application.cfc file that sets up variables, security, etc.  For
site-specific stuff in the application.cfc, I am including a file that sets
the app name, etc. before the onApplicationStart() runs.

I then have the site-specific stuff (templates, config files, etc.) in
separate directory paths, each set up mapped to /site as virtual directories
for their respective web sites.

The problem I am having is that application.applicationname is being set to
whatever site loads first; i.e., I have SiteA and SiteB set up in IIS,
restart CF, and if I load SiteB first, then SiteA has SiteB's
application.applicationname value.

This is a problem.

Has anyone here tried to do this and succeeded?  Or do I need to rethink how
I have this site architected?

Thanks,

Pete




~|
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:342022
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Multiple applications with a single codebase issues

2011-02-08 Thread Pete Ruckelshaus

I'd have to rewrite the entire application to support thiswhich I
really, really don't want to do.

I think I just need to gut my application.cfc file and start by rewriting
that and any of the site-specific instantiation code.

On Tue, Feb 8, 2011 at 8:19 PM, Dave Watts dwa...@figleaf.com wrote:


  I have it set up so that IIS sees the root directory of the CMS software
 as
  each web sites' root, and then I set up a virtual directory to the
  site-specific content for each domain.

 Perhaps you could reverse this - set up the root directory of each
 virtual server to be site-specific, then create a virtual directory
 within each that uses the CMS software core directory.

 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:342024
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Multiple applications with a single codebase issues

2011-02-08 Thread Mark A. Kruger

Pete,

Make sure the APPLICATION NAME  (this.name declared at the top along with
the session stuff and timeouts etc.) is different for each domain. This can
be done by using the URL itself as the application name. If the names are
different then each site will be it's own application with it's own scope
(and hence it's own application.applicationname

-Mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Pete Ruckelshaus [mailto:pruckelsh...@gmail.com] 
Sent: Tuesday, February 08, 2011 7:16 PM
To: cf-talk
Subject: Multiple applications with a single codebase issues


I'm having a bit of an issue here.

Over time, I have developed a CF web-based content management system (hey,
who hasn't?).  The software is currently running a handful of sites, all on
different web hosts.  It works fine in this mode.

Recently, I realized that I could get a VPS for less money than the several
web hosting accounts I'm using; this would have the added benefit of
allowing me to update the core software in one location rather than in
several.

I have it set up so that IIS sees the root directory of the CMS software as
each web sites' root, and then I set up a virtual directory to the
site-specific content for each domain.  For instance,
c:\inetpub\wwwroot\app\core is set as the root directory; in it, I have an
application.cfc file that sets up variables, security, etc.  For
site-specific stuff in the application.cfc, I am including a file that sets
the app name, etc. before the onApplicationStart() runs.

I then have the site-specific stuff (templates, config files, etc.) in
separate directory paths, each set up mapped to /site as virtual directories
for their respective web sites.

The problem I am having is that application.applicationname is being set to
whatever site loads first; i.e., I have SiteA and SiteB set up in IIS,
restart CF, and if I load SiteB first, then SiteA has SiteB's
application.applicationname value.

This is a problem.

Has anyone here tried to do this and succeeded?  Or do I need to rethink how
I have this site architected?

Thanks,

Pete




~|
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:342028
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Multiple applications with a single codebase issues

2011-02-08 Thread Mark A. Kruger

Pete... see my other note... you can fix this by insure the name of the app
is different for each URL... not tough at all :)

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Pete Ruckelshaus [mailto:pruckelsh...@gmail.com] 
Sent: Tuesday, February 08, 2011 7:34 PM
To: cf-talk
Subject: Re: Multiple applications with a single codebase issues


I'd have to rewrite the entire application to support thiswhich I
really, really don't want to do.

I think I just need to gut my application.cfc file and start by rewriting
that and any of the site-specific instantiation code.

On Tue, Feb 8, 2011 at 8:19 PM, Dave Watts dwa...@figleaf.com wrote:


  I have it set up so that IIS sees the root directory of the CMS software
 as
  each web sites' root, and then I set up a virtual directory to the
  site-specific content for each domain.

 Perhaps you could reverse this - set up the root directory of each
 virtual server to be site-specific, then create a virtual directory
 within each that uses the CMS software core directory.

 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:342029
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Multiple applications with a single codebase issues

2011-02-08 Thread Casey Dougall

On Tue, Feb 8, 2011 at 8:19 PM, Dave Watts dwa...@figleaf.com wrote:


  I have it set up so that IIS sees the root directory of the CMS software
 as
  each web sites' root, and then I set up a virtual directory to the
  site-specific content for each domain.

 Perhaps you could reverse this - set up the root directory of each
 virtual server to be site-specific, then create a virtual directory
 within each that uses the CMS software core directory.


Or just setup domain aliases and host everything under one that root folder,
switch content depending on which domain you enter with. Great when your
host charges by domain or allows 100 aliases per domain ;-)


~|
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:342031
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Multiple applications with a single codebase issues

2011-02-08 Thread Steve Bryant

You can accomplish that by using the domain name (CGI.SERVER_NAME) to figure 
the ApplicationName, for example (perhaps not directly though).

Also check out the Many Sites, Single Codebase blog series by Steven Cutter 
Blades:
http://blog.cutterscrossing.com/index.cfm/2011/1/13/Many-Sites-One-Codebase

It has great stuff so far!

Steve

Pete... see my other note... you can fix this by insure the name of the app
is different for each URL... not tough at all :) 

~|
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:342033
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm