Multiple Apache Files for Multiple CFML Engines

coldfusion

I frequently have to switch between two development environments.  One is an Adobe CF environment, and another is a Railo environment.  Both need unique apache httdp.conf, so i wrote two batch files to take care of this.  Then I just run them from within eclipse, and restart apache!

 

Here are the files:

switch_cf.bat

:: Switch to coldfusion
If exist cf_httpd.conf (
rename httpd.conf r_httpd.conf;
rename cf_httpd.conf httpd.conf;
)

 

switch_railo.bat

:: Switch to railo
If exist r_httpd.conf (
rename httpd.conf cf_httpd.conf;
rename r_httpd.conf httpd.conf;
)

 

Pretty simple!

Ryan Stille said:
 
I run all 3 engines with one httpd.conf file, so that can be an option for some people as well. I have Adobe CF as the default cfml engine, but within each VirtualHost I can set it to proxy requests to Tomcat/Railo/OpenBD instead.
 
posted 226 days ago
Add Comment Reply to: this comment OR this thread
 
Jeff said:
 
Interesting, would you mind posting your code?
 
posted 226 days ago
Add Comment Reply to: this comment OR this thread
 
Ryan Stille said:
 
Well I have the usual Adobe CF stuff:
LoadModule jrun_module "C:/ColdFusion8/runtime/lib/wsconfig/1/mod_jrun22.so"

JRunConfig Verbose false
JRunConfig Apialloc false
JRunConfig Ignoresuffixmap false
JRunConfig Serverstore "C:/ColdFusion8/runtime/lib/wsconfig/1/jrunserver.store"
JRunConfig Bootstrap 127.0.0.1:51800
#JRunConfig Errorurl url
#JRunConfig ProxyRetryInterval 600
#JRunConfig ConnectTimeout 15
#JRunConfig RecvTimeout 300
#JRunConfig SendTimeout 15
AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf


Then I use something like this for my Railo or OpenBD hosts:


ServerName byte.dev
ServerAlias www.byte.dev
DocumentRoot "C:/development/xampp/htdocs/byte/www"
ProxyRequests Off

Order deny,allow
Allow from all


ProxyPass / ajp://byte.dev:8009/
ProxyPassReverse / ajp://byte.dev:8009/


I have a "HOST" setup in Tomcat's server.xml file for byte.dev also. Then in that site's documentRoot I have a WEB-INF folder, either from Railo or OpenBD. Whichever one is in there, thats the CFML engine that gets used. I can easily swap between the two engines by renaming the WEB-INF folders around. And I could use a different VirtualHost block pointing to the same files (without the proxy stuff) to execute those same files under Adobe CF.

I think its also possible to deploy Adobe CF on Tomcat, then I could switch between all three engines just using the WEB-INF folders.
 
posted 226 days ago
View Replies (1) || Add Comment Reply to: this comment OR this thread
 
.: HIDE REPLIES :.
Ryan Stille said:
 
Whoops I see all the tags got stripped out. Makes it a little harder to read but I think you can get the idea.
 
posted 226 days ago
Add Comment Reply to: this comment OR this thread
 

Search