House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Talk (CF-Talk)

ColdFusion MX J2EE and CFML file location

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hi all,
The Wolf
05/17/04 07:09 P
On 18-05-2004 1:06, The Wolf wrote:
The Wolf
05/19/04 06:45 A
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
The Wolf
05/17/2004 07:09 PM

Hi all, I've deployed ColdFusion MX 6.1 on the top of Tomcat 5 on Linux/Apache. Is there any way to store the CFML files outside the CFMX webapp root? I would like to put CFML files in the document root of the Apache virtual hosts, so I would be able to call them as www.mydomain.com/test.cfm instead of www.mydomain.com/cfusion/test.cfm. I read the documentation and it looks like that is possible: <http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/cluster2.htm>; --- File location considerations In the J2EE configuration, you can store CFM pages either under the external web server root or under the ColdFusion web application root. ColdFusion MX first looks for CFM files in the web application root and then looks in the external web server root. The discussions in this chapter assume that you are using an external web server and that you store your CFM pages under the external web server root. --- <http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/cluster5.htm>; --- Store your application's CFM files in the web root of the virtual website. --- How do I do it with Tomcat/CFMX? Thanks!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Barney Boisvert
05/17/2004 07:16 PM

Tomcat allows you to specify arbitrary web app roots anywhere in your filesystem.  I define my context using the same path as my Apache virtual host.  For example: <Context displayName="barneyb.com" docBase="/home/barneyb/public_html" path="" /> And <VirtualHost *:80>   DocumentRoot /home/barneyb/public_html </VirtualHost> You'll have to move your CF install to that location, and you'll want to add a <Directory "/path/to/webroot/WEB-INF">   Order deny,allow   Deny from all </Directory> directive in your vhost so people can't go looking in the WEB-INF directory. Cheers, barneyb ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
The Wolf
05/19/2004 07:14 AM

On 18-05-2004 1:12, Barney Boisvert wrote: ----- Excess quoted text cut - see Original Post for more ----- Hi Barney, thanks for the reply. What do you mean with moving the CF install to the virtual host document root? Do you mean that I should extract the archive cfusion.war and move the content of the extracted directory "cfusion" (CFIDE, META-INF, WEB-INF) to the virtual host document root? Indeed I would prefer to keep that stuff in the directory "cfusion" in vh document root ... But if I do that, I am forced to store my CFML files in the directory "cfusion" and that is my problem: I would like to be able store my CFML anywhere in the vh document root and subdirectories and have them executed ... Do you know if there is any way to keep the CFMX webapp in its separate directory "cfusion" and still have the CFML files executed outside it (e.g. in the vh document root)? A similar thing is achieved with the ColdFusion MX Server Install, that runs on the included JRun server. So maybe there should be a way to do it also with Tomcat. Thanks!

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
The Wolf
05/19/2004 06:45 AM

On 18-05-2004 1:06, The Wolf wrote: ----- Excess quoted text cut - see Original Post for more ----- Does anyone know how to do this? Thanks!


<< Previous Thread Today's Threads Next Thread >>

Search cf-talk

May 24, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
     1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31     

Designer, Developer and mobile workflow conference