I do it like this guy does it: http://www.boyzoid.com/blog/index.cfm/2007/12/14/How-Do-You-Set-Up-Your-Development-Environment
<http://www.boyzoid.com/blog/index.cfm/2007/12/14/How-Do-You-Set-Up-Your-Development-Environment>Basically, set up a virtual host thru apache for each site, with a .dev naming convention. So if I have 2 sites that would be www.foo.com and www.bar.com in production, they're foo.dev and bar.dev locally. And yes, that would require entries into your hosts file for foo.dev and bar.dev :) On Thu, Feb 25, 2010 at 6:05 PM, Jeff U <[email protected]> wrote: > > Hello, > I've got a new local environment setup and I've got multiple projects in > folders off the root. > > http://localhost:8500/projectAAA/index.cfm > http://localhost:8500/projectBBB/index.cfm and so forth > > These projects then sit production wise on: > www.projectAAA.com > www.projectBBB.com (note: root level, not in a sub-folder like LOCAL) > > Is there anyway in my local environment that I can create something like: > http://local.projectAAA.com/ hitting the content in the /projectAAA/ > folder. > > I'm hoping I can create all links RELATIVE and that way they work both > locally as well as on production with no code changes what-so-ever. > > I hope I explained that right. I believe my HOSTS file isn't the answer as > that can't forward to ports. Suggestions?? > > only other idea I had was to make links look like: <a > href="#baseURL#link.cfm">link</a>. > > where: > <cfif isLocalEnv> > <cfset baseURL = "/projectAAA/"> > <cfelse> > <cfset baseURL = "/"> > </cfif> > but that seems like a ugly code solution. > > Appreciate any help this list can provide! > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:331146 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

