Just got a solution for multiple sites on localhost.

For each application I set up a new IIS virtual directory to point to the farcry admin directory, called it farcry_site1_admin, farcry_site2_admin ...

Modified apps.cfm to set a cookie variable to store the first part of the cgi.path.info to determine the app. Had to use a cookie as the cfapplication ha not yet been done. Also ignored cgi.path.info = farcry as this would be in the cgi.path.info once logged in.

cfswitch on the cookie var to set the stApps

Use http://localhost/farcry_site1_admin/ or http://localhost/farcry_site2_admin/ to get to your chosen admin area.

It works, without too much messing about and minimal changes to the farcry core code easy to maintain for new sites and releases of farcry.

hth.
Chris.


Chris Kent wrote:

Hi,


I am new to Farcry but would like to use it for a number of sites all on the same box. I have read a number of posts regarding multiple sites a number of times - and each time I read them I find somethineg new, but all saying that it will work.

The key as I see it is the apps.cfm, to allow the multiple sites to use the same farcry code base.

Below is my plan of attack - please do correct me if I am wrong, I would much rather get it right before installs than correct it after.


Directory Structure: (a) - Inetpub (b) - - Applications (c) - - - Farcry_core (d) - - - - Admin (e) - - - Fourq (f) - - - site1 (g) - - - site2 (h) - - - Site3


APPS.CFM: <cfscript> stApps = structNew(); stApps['www.site1.com'] = 'site1'; stApps['www.site2.com'] = 'site2'; stApps['www.site3.com'] = 'site3'; </cfscript>


CF Mappings: /farcry - maps-to (c)


IIS Mappings (virtual : www.site1.com maps-to (f) admin.site1.com maps-to (d) www.site2.com maps-to (g) admin.site2.com maps-to (d) www.site3.com maps-to (h) admin.site3.com maps-to (d)


Thanks in advance for any assistance. Chris





---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to