House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home /  Groups /  ColdFusion Linux (CF-Linux)

not showing index cfm

  << Previous Post |  RSS |  Sort Oldest First |  Sort Latest First |  Subscribe to this Group Next >> 
Hi,
John Barrett
09/26/08 03:27 A
John,
J.J. Merrick
09/26/08 06:46 A
Hi John,
Paul Kukiel
09/26/08 07:25 A
Hi Paul & J.J. ,
John Barrett
09/26/08 10:20 P
Top  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John Barrett
09/26/2008 03:27 AM

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

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
J.J. Merrick
09/26/2008 06:46 AM

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. ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
Paul Kukiel
09/26/2008 07:25 AM

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: ----- Excess quoted text cut - see Original Post for more -----

Top  |   Parent  |   Reply  |   Original Post  |   RSS Feed  |   Subscribe to this Group
Author:
John Barrett
09/26/2008 10:20 PM

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


<< Previous Thread Today's Threads Next Thread >>

Search cf-linux

June 19, 2013

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
             1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30             

Designer, Developer and mobile workflow conference