not showing index.cfm

View: New views
4 Messages — Rating Filter:   Alert me  

not showing index.cfm

by John Barrett :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I seem to have a problem showing the index.cfm file when I view the directory. Such as if I go to http://localhost I get the listing of files instead of the index.cfm file.

I know the problem is connected to the httpd configuration file. Where generally on the Linux machine(Unbtutu) is this located, and do I just change the apache settings to include the .cfm extension or is there some other changes that I would need to add? I think that it is the module settings in the apache file, but not sure.

Thanks so much for any help that you might be able to add.
John

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/cf-linux/message.cfm/messageid:4460
Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14

Re: not showing index.cfm

by J.J. Merrick-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John,


In the httpd.conf file there is a directive called:

<IfModule dir_module>
    DirectoryIndex index.html
</IfModule>


Just change it to:

<IfModule dir_module>
    DirectoryIndex index.html index.cfm
</IfModule>


and restart apache and it should work for you.



J.J.




On Fri, Sep 26, 2008 at 2:19 AM, John Barrett <barrjohnm@...> wrote:
> Hi,
> I seem to have a problem showing the index.cfm file when I view the directory. Such as if I go to http://localhost I get the listing of files instead of the index.cfm file.
>
> I know the problem is connected to the httpd configuration file. Where generally on the Linux machine(Unbtutu) is this located, and do I just change the apache settings to include the .cfm extension or is there some other changes that I would need to add? I think that it is the module settings in the apache file, but not sure.
>
> Thanks so much for any help that you might be able to add.
> John
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/cf-linux/message.cfm/messageid:4461
Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14

Re: not showing index.cfm

by Paul Kukiel :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi John,

Check the httpd.conf file and  add index.cfm to the line that looks  
like this:

DirectoryIndex index.html index.html.var index.phtml index.php index.cfm

and restart apache and it should use index.cfm as a default document.

Paul


On 26/09/2008, at 5:19 PM, John Barrett wrote:

> Hi,
> I seem to have a problem showing the index.cfm file when I view the  
> directory. Such as if I go to http://localhost I get the listing of  
> files instead of the index.cfm file.
>
> I know the problem is connected to the httpd configuration file.  
> Where generally on the Linux machine(Unbtutu) is this located, and  
> do I just change the apache settings to include the .cfm extension  
> or is there some other changes that I would need to add? I think  
> that it is the module settings in the apache file, but not sure.
>
> Thanks so much for any help that you might be able to add.
> John
>
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/cf-linux/message.cfm/messageid:4462
Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14

Re: not showing index.cfm

by John Barrett :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Paul & J.J. ,

thanks so much for your help!
I am not sure if this is a Linux thing, or there were lots of changes in apache 2. I usually use the Mac with apache, and there is one conf file for this, but on Ubuntu they seemed to separate all the files, as the httpd.conf file is just the JRun settings.

The fle that I needed was in:
/etc/apache2/mods-available/dir.conf this file contains
<IfModule mod_dir.c>
   DirectoryIndex index.cfm index.html index.cgi index.pl index.php index.xhtml index.htm
</IfModule>

I put the .cfm first(the only one added) as well all know ColdFusion is the most important`-` restarted apache and my magic I can see the index.cfm when going to localhost.

It took a while to figure this out, but am really happy now.
Thanks again for all your help,
John

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: http://www.houseoffusion.com/groups/cf-linux/message.cfm/messageid:4463
Subscription: http://www.houseoffusion.com/groups/cf-linux/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=17837.14401.14