Solved

Reading coldfusion in .html files

Posted on 2007-03-28
3
430 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
ID: 18815804
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
ID: 18819531
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
ID: 18840878
You are a genious my friend! Works perfectly, thanks!
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Recently while working on a project I got a very annoying cfdocument has no body error message. I had never seen this error before. So I checked the code. The code was pretty simple; it was Just showing me the cfdocumnt tag and inside that tag a …
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

910 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

21 Experts available now in Live!

Get 1:1 Help Now