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:

  • For whatever reason there were some issues with IIS and I had to reinstall it.
  • I had to make sure 9.0.1 was installed
  • I had to run Webserver Configuration Tool multiple times to actually get the Handler Mappings in order.
  • http://127.0.0.1/domain1/ was wrong - it must be http://domain1/ etc.
  • I forgot to add the domains to the host file on the machine - stupid me
  • I had to redesign my mapping to avoid overlaps between domains (ie mapping CFCs to /_/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

    上一篇: 使用Coldfusion在本地测试SSL HTTPS应用程序

    下一篇: 用于多个域/ URL的本地Coldfusion服务器