ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  ColdFusion MX on Mac OS X, Part 4
Subject:   Aargghhh!!! Deadlines Approach!!
Date:   2003-01-31 04:29:31
From:   dicklacara
Response to: Aargghhh!!! Deadlines Approach!!

A. Where is the equivalent of the "wwwroot" directory?


The equivalent of wwwroot is:


JRun_Root/servers/JRun_Server_Instance/CFMX_Context_Root/


and the URL is:


http://127.0.0.1:port/CFMX_Context_Root/


On my system I used the following:

  JRun_Root............./Applications/JRun4/ (default)
CFMX_Context_Root.....cfusion (default)
I created a JRun_Server_Instance named cfmx1, and used the default CFMX-Context_Root so the path is:
   /Applications/JRun4/servers/cfmx1/cfusion/
and the URL is
   http;//127.0.0.1:8101/cfusion/
If you used the default server instance, the path would be:
   /Applications/JRun4/servers/default/cfusion/
and the URL would be:
   http;//127.0.0.1:8100/cfusion/
This may seem to be a lot of work, but it gives us flexibility -- we can setup multiple JRun_Server_Instances and/or multiple CFMX_Contexts. We will use this flexibility in later articles.


B. How do I set up my site (i.e. where do I put it???)


The outermost level where you can execute CF Templates is the CFMX-Context_Root.


If you have RDS installed, there will be three extra files installed at this level:

  index.cfm
index.htm
index.html
These comprise the RDS Redirector -- they will redirect the URL to the Administrator -- CFIDE/administrator/index.cfm


To avoid any conflict, you should not store any of your application files in the CFMX-Context_Root, itself -- rather they should be deployed in a directory under the CFMX-Context_Root.


For example, with an application directory named mycfmxapps the path would be:


JRun_Root/servers/JRun_Server_Instance/CFMX_Context_Root/mycfmxapps/


and the URL would be:


http://127.0.0.1:port/CFMX_Context_Root/mycfmxapps/


C. I don't understand the question -- examples please!