Local Coldfusion server for multiple domains / URLs
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:InetPubwwwrootdomain1
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:coldfusion9wwwrootdomain1_... and it sort of works.
In other words I start the program here: C:inetpubwwwrootdomain1index.cfm Inside that index is for instance
But it executes the file located here: c:coldfusion9wwwrootdomain1_definesession.cfm Just couldn't find anything in the web about mapping a local CF9 to that situation. Any idea??? –
您可能需要调整“/”的ColdFusion映射。
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.
链接地址: http://www.djcxy.com/p/31210.html