Reputation: 121
I want to get CF9 with IIS 7 setup locally to run with multiple domains. I have read this one but it doesn't say anything about the actual setup. Need help with multiple URL setup on local CF9/Jrun install
I setup IIS so that I can start 127.0.0.1/domain1/index.cfm
The page loads properly
but all subsequent links fail with
Could not find the included template: /_/definesession.cfm
But I see the file when typing in file:///C:/InetPub/wwwroot/domain1/_/DefineSession.cfm The files are there but apparently the server is only reading the directory correctly
If I test http://127.0.0.1/domain1/_/BrowserDetect.cfm with no includes just a self contained file it executes properly.
The path in IIS is set to C:\InetPub\wwwroot\domain1
The bindings hostname is just domain1
no TLD
Also the second instance 127.0.0.1/domain2/index.cfm
is working correctly. And here as well including subdirectories is failing.
ADDITIONAL NOTES: (added 1/3/12)
I guess it has to do with the CF mapping. I now moved the code to c:\coldfusion9\wwwroot\domain1_... and it sort of works.
In other words I start the program here: C:\inetpub\wwwroot\domain1\index.cfm Inside that index is for instance
But it executes the file located here: c:\coldfusion9\wwwroot\domain1_\definesession.cfm Just couldn't find anything in the web about mapping a local CF9 to that situation. Any idea??? –
Upvotes: 2
Views: 848
Reputation: 121
OK I fixed it. There were multiple issues:
http://127.0.0.1/domain1/
was wrong - it must be http://domain1/
etc./_/cfc/
on all domains needed to have different mapping names.Now I have several different domains on my local machine and they work just fine.
Upvotes: 1
Reputation: 878
You might have a ColdFusion mapping for "/" that needs to be adjusted.
Upvotes: 1