I'm running CF9 Developer on Apache to run a testing server on my computer for multiple domains whose sites are ultimately hosted remotely. Everything works, but I can currently only use the "/" root mapping on one. Here are my local domains:
- local.domain1.com
- local.domain2.com
- etc...
And here are there physical paths:
- C:\www\domain1.com\
- C:\www\domain2.com\
In CF Administrator, I have the following Active ColdFusion Mapping: (Logical Path: "/" - Directory Path: "C:\www.domain1.com\"). This works for local.domain1.com. However, I can only add one "/" logical path in CF Administrator.
In other words, domain 1 will sucesfully load cfinclude template="/anyrootfolder/anyfile.cfm" because it's root is mapped. Domains 2, 3, etc, will fail if I try to use cfinclude template="/anyrootfolder/anyfile.cfm" because the "/" root is not mapped.
Any suggestions how I can map multiple "/" on the same server?
EDIT:
As referenced in my comments under Al's answer, I discovered that all domains were grabbing from domain1's file structure whenever I used an absolute path on a cfinclude. In CF Administrator, I deleted the Active CF Mapping with Logical Path "/" and Directory Path "C:\www\domain1.com\", and this seemed to do the trick. I'm not sure why that was in there (maybe as part of the default CF setup process?). Anyway, I don't see any errors as a result of deleting it to either test site, and my other domains now work as expected (probably because I already had the document roots set up under Apache's config? [See RobG's answer.]) Thanks all!