Solved

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

Posted on 2010-09-09
6
932 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
  • 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Forward apache log to Syslog-NG 7 79
Hosting application in Apache and Tomcat 1 92
Comparing 2 Lists Coldfusion 8 49
NGINX/Apache redirect on 403 and 404 5 73
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 …
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

863 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

25 Experts available now in Live!

Get 1:1 Help Now