This is repost of my contribution to the Railo Google Group.
You are a Railo and Tomcat newbie and you want a directory to put your coldfusion files in. “tomcat\myapp\ROOT” would do nicely
Preconditions (for me anyway)
- 64 bit Windows 7 home premium
- UAC turned off and stays off
- Java installed and JAVA_HOME set
Main Success Scenario
- Download Windows distribution
- Install to C:\railo
- Go to windows services and verify that Apache Tomcat Railo is running
- go to http://localhost:8888/index.cfm and the welcome to Railo should render
- <Comment> This page has a link to documentation called “creating new virtual hosts”. Note that this refers to Jetty and Resin but not Tomcat – hence this post </Comment>
- Use the Windows services control panel to stop Tomcat
- In your Windows hosts file (C:\Windows\System32\drivers\etc\hosts)
- create the entry:
- 127.0.0.1 myapp # Tomcat uses the host name to identify the requested application.
- create the directory c:\railo\tomcat\myapp
- create \myapp\ROOT. (This is where you will keep your application’s .cfm files)
- create \myapp\ROOT\index.cfm with the contents <cfdump var= “#CGI#”>
- goto “C:\railo\tomcat\conf\Catalina\
- create the directory \myapp
- copy \localhost\manager.xml to \myapp and rename it to ROOT.xml
- Edit C:\railo\tomcat\conf\server.xml
- Find the <Engine></Engine> node and insert
- <Host name=”myapp” appBase=”myapp”>
- <Context path=”keyapt” docBase=”C:\railo\tomcat\myapp” />
- Restart Tomcat. You will see /myapp/WEB-INF and /myapp/ROOT/WEB- INF directories appear by magic.
- Browse to http://myapp:8888/index.cfm and you should see the cfdump (Update 2011 Mar 29 – corrected URL)
- The goal is complete
I am a complete newbie and although this is working for me I don’t know whether it is the right way to do it.