Note that there are some explanatory texts on larger screens.

plurals
  1. POColdfusion: Multiple local.domains for testing. Mapping a "/" root for each
    primarykey
    data
    text
    <p>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:</p> <ul> <li>local.domain1.com</li> <li>local.domain2.com</li> <li>etc...</li> </ul> <p>And here are there physical paths:</p> <ul> <li>C:\www\domain1.com\</li> <li>C:\www\domain2.com\</li> </ul> <p>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.</p> <p>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.</p> <p>Any suggestions how I can map multiple "/" on the same server?</p> <p><strong>EDIT:</strong></p> <p>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!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload