Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I want apache to pass *.htm files to coldfusion server for processing

Status
Not open for further replies.

bleemw

Programmer
Jan 27, 2001
1
US
I am running apache under linux with coldfusion enterprise. Normally apache passes only *.cfm files to the coldfusion server for server side processing. I want it to pass every htm and html file to coldfusion for processing also.

I thought that there was some kind of configuration setting to do this, but can't find it.

Any direction is appreciated.

-bill
 
There should be a setting in httpd.conf, which tells Apache to pass .cfm files to coldfusion. I don't use CF, but in PHP, the setting looks like

AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php

All I have to do to pass .htm files to PHP is to add

AddType application/x-httpd-php .htm

So, I would think its pretty similar with CF. Or, it might be an AddHandler directive, such as

AddHandler cgi-script .cgi
 
Yes, you'll need to add a "handler" in your httpd.conf, and possibly an item in your MIME Types file (/conf/mime.types) too.

I assume ColdFusion's installed properly on the server as well? You need to find-out if CF is running via CGI, or Dynamic Shared Object (DSO). If it's running as a DSO, then I dunno if you can add the handler, but if it's using the "cfml" binary in "/cgi-bin", then add the following lines to "/conf/httpd.conf".

AddHandler type-coldfusion cfm htm html
Action type-coldfusion /cgi-bin/cfml

Good luck!

-Ted
-Teddy L. Biesecker, Jr.
Web System Analyst
HQ USSOCOM, MacDill AFB, FL
webmaster@socom.mil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top