|
Mailing Lists
|
Home /
Groups /
ColdFusion Linux (CF-Linux)
not showing index cfm
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 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 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 ----- 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 ----- 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
|
June 19, 2013
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||