Ora,
I had the same issue a few weeks back. Chris Kent wrote a solution using cookies that does work (allows you to use one domain, one farcry_core folder, and multiple website folders).
1. Edit apps.cfm and enter the following code. Note, keep a backup of this edited file. If a newer version of FarCry is installed (which is fine) it may overwrite this file. Just restore it to the newer settings listed below (apps.cfm).
2. In iis, create a virtual directory for each site (e.g. "site1". Then to get to 'tat' site you'd go to http://domain/site1).
3. In IIS, create a virtual directory for each admin folder (e.g. "site1_admin". Then to get to 'that' admin you'd go to http://domain/site1_admin).
I believe tht was all I had to do. Either way, these steps were not difficult and it worked out quite well. (If you still can't get it working, email me and I'll see if I missed a step [EMAIL PROTECTED]).
Note: Chris's code was a little longer, so I re-scripted it a bit to be easier to read (put it in CFSCRIPT).
<!--- START - Apps.cfm --->
<cfif Trim(GetToken(cgi.PATH_INFO,1,"/")) NEQ "farcry">
<cfcookie name="farcryCallPath"
value="#Trim(GetToken(cgi.PATH_INFO,1,"/"))#">
</cfif><CFSCRIPT>
SWITCH (cookie.farcryCallPath)
{
CASE "intranet_admin" :{ // Site1
stApps = structNew();
stApps['DomainName'] = 'farcry_site1';
break;
}CASE "midhosp_admin" :{ // Site2
stApps = structNew();
stApps['DomainName'] = 'farcry_site2';
break;
}DEFAULT :{ // (default) Intranet
stApps = structNew();
stApps['DomainName'] = 'farcry_site1';
break;
}
}
</CFSCRIPT><!--- END - Apps.cfm --->
Best Regards,
Jeff
Ora Martindale wrote:
I've seen a lot of posts about how to create multiple sites under one domain such as:
http://www.somesite.com/website1 http://www.somesite.com/website2
What I would like to setup is multiple domains that all point to different directories for site files (farcry_site) but whose admins all have a virtual directory that points to the same physical directory for the core files (farcry_core), thus letting each site update it's own content without knowledge of the other sites.
My reasoning is that I plan to use this for 60+ sites and when the core gets upgraded I'd like to upgrade the files in one place rather than 60.
I'm a programmer and not a "server" guy. My operations guy who installed farcry for me using the installation guide (http://farcry.daemon.com.au/go/documentation/installation/installation-guide) provided by FarCry tells me that this scenario is not possible.
I've played around with trying this a bit and have screwed up FarCry several times.
So here's the file structure I'd like to see: c:\farcry\farcry_core c:\farcry\farcry_site1 c:\farcry\farcry_site2 c:\farcry\farcry_site3 ...
All three sites could have a virtual directory in IIS that points to c:\farcry\farcry_core:
http://www.site1.com/admin/ http://www.site2.com/admin/ http://www.site3.com/admin/
And then each sites IIS entry could point directly to it's own site folder http://www.site1.com/ resolves to c:\farcry\farcry_site1 http://www.site2.com/ resolves to c:\farcry\farcry_site2 http://www.site3.com/ resolves to c:\farcry\farcry_site3
So my question is: Is it possible? Can anyone give me detailed installation directions that I could give to my Ops guy to show him how?
--- You are currently subscribed to farcry-dev as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
