Solved

Reading coldfusion in .html files

Posted on 2007-03-28
3
429 Views
Last Modified: 2013-12-24
I am on a Windows server with coldfusion mx 7 and apache.

I know this is possible by somehow tuning my server settings, but am very rusty since I haven't touched coldfusion in over a year.

I want to be able to read coldfusion language within .html files. Basically, being able to run coldfusion with a file saved as .html.

What exactly do I have to configure to be able to do that?
0
Comment
Question by:ShytKicker
3 Comments
 
LVL 1

Accepted Solution

by:
jduawa earned 500 total points
Comment Utility
have a look @ http://www.activsoftware.com/apache/apache2cfmx.cfm
you may just need to edit this section to include .html
LoadModule jrun_module "/opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun20.so"
 <IfModule mod_jrun20.c>
    JRunConfig Verbose false
    JRunConfig Apialloc false
    JRunConfig Ssl false
    JRunConfig Ignoresuffixmap false
    JRunConfig Serverstore "/opt/coldfusionmx/runtime/lib/wsconfig/1/jrunserver.store"
    JRunConfig Bootstrap 127.0.0.1:51010
    #JRunConfig Errorurl optionally redirect to this URL on errors
    AddHandler jrun-handler .cfm .cfc .cfml .jsp .jws
 </IfModule>
0
 
LVL 8

Expert Comment

by:pmascari
Comment Utility
Are you wanting to execute CF code in the HTML page?

You could read the HTML file, write it to a temp CFM file and then run it.

<cffile action="read" file="#absolute_server_path#/#your_HTML_file#" variable="TempRead">
<cflock timeout="500">
<cffile action="WRITE" file="#absolute_server_path#/temp.cfm" output="#TempRead#">
</cflock>
<cflocation url="temp.cfm">
0
 
LVL 7

Author Comment

by:ShytKicker
Comment Utility
You are a genious my friend! Works perfectly, thanks!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The technique is by far very Simple! How we can export the ColdFusion query results to DOC file?  Well before writing this I researched a lot in Internet but did not found a good Answer anyways!  So i thought now i should share my small snippet w…
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now