Solved

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

Posted on 2010-09-09
6
931 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 

Author Comment

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

Author Comment

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

Accepted Solution

by:
godd31 earned 500 total points
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
I spent nearly three days trying to figure out how incorporate OAuth in Coldfusion for the Eventful API. Hopefully, this article will allow Coldfusion Programmers to buzz through the API when they need to. Basically, what this script does is authori…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

7 Experts available now in Live!

Get 1:1 Help Now