Solved

set .cfm as default in apache/coldfusion/ on an Ubuntu system

Posted on 2010-09-09
6
953 Views
Last Modified: 2012-06-21
For some reason, my browser will not default to a index.cfm file. I have no index.html file in that directory and am getting "File not found" when pointing to that directory i.e. "www.mysite.com/users/".

If I include the index.cfm file ("www.mysite.com/users/index.cfm") in the path it comes up fine. Also, if I put an index.html file in the directory and again pointing to www.mysite.com/users/, it navigates fine to the index.html file.

Either something in apache or coldfusion server is not handling .cfm files by default.

Any help would be greatly appreciated.
0
Comment
Question by:sultanofshred
[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
  • 3
6 Comments
 
LVL 5

Expert Comment

by:godd31
ID: 33636585
Hi,
Under your Apache configuration you need to set it as a default file for viewing. I assume index.html is currently set. If you look at your config file you should find a line stating which file is the default file. Change it to index.chm and that should fix it..
0
 

Author Comment

by:sultanofshred
ID: 33637332
I believe that would be the httpd.conf file and it already contains the .cfm extension.

here is the file content:

# JRun Settings
LoadModule jrun_module /opt/coldfusion9/runtime/lib/wsconfig/1/mod_jrun22.so
<IfModule mod_jrun22.c>
    JRunConfig Verbose false
    JRunConfig Apialloc false
    JRunConfig Ignoresuffixmap false
    JRunConfig Serverstore /opt/coldfusion9/runtime/lib/wsconfig/1/jrunserver.store
    JRunConfig Bootstrap 127.0.0.1:51800
    AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc .cfr .cfswf
</IfModule>
<Files ~ ".hbmxml$">
Order allow,deny
Deny from all
</Files>

I have already restarted both cf and apache... still not working
0
 
LVL 5

Expert Comment

by:godd31
ID: 33637696
Hmm look for directoryIndex:

Edit httpd.conf

Open your Apache configuration file httpd.conf
# vi httpd.conf

Find out line that read as follows:
DirectoryIndex

Now set it as per your requirements:
DirectoryIndex index.html index.htm default.htm index.php index.pl

Save and close the file. Restart the Apache web server:

If that doesn't come up with anything let me know which version of Apache server you are running and on what OS etc..
0
Supports up to 4K resolution!

The VS192 2-Port 4K DisplayPort Splitter is perfect for anyone who needs to send one source of DisplayPort high definition video to two or four DisplayPort displays. The VS192 can split and also expand DisplayPort audio/video signal on two or four DisplayPort monitors.

 

Author Comment

by:sultanofshred
ID: 33638580
I could not file that line in either httpd.conf or apache2.conf
0
 

Author Comment

by:sultanofshred
ID: 33638908
I'm running apache2 on Ubuntu 10.04 and Coldfusion 9
0
 
LVL 5

Accepted Solution

by:
godd31 earned 500 total points
ID: 33639464
Check out this Thread, sounds like there may be a new config file that you need to check.

http://ubuntuforums.org/showthread.php?t=1239133 

Another:
http://ubuntuforums.org/showthread.php?t=243804
0

Featured Post

Certified OpenStack Administrator Course

We just refreshed our COA course based on the Newton exam.  With 14 labs, this course goes over the different OpenStack services that are part of the certification: Dashboard, Identity Service, Image Service, Networking, Compute, Object Storage, Block Storage, and Orchestration.

Question has a verified solution.

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

PROBLEM: How to add your own buttons to the bottom toolbar with paging info ( result count ). While creating a cfgrid, I ran into an issue where I wanted to embed my own custom buttons where the default ones ( insert / delete / etc… ) are for aes…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
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…

624 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