Solved

Reading coldfusion in .html files

Posted on 2007-03-28
3
435 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Hi, I will be creating today a basic tutorial on how we can create a Mail Custom Function and use it where ever we want. The main advantage about creating a custom function is that we can accommodate a range of arguments to pass to the Function and …
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

719 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