|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
I have ColdFusion running on Linux with Apache 2.2. When I go to a
directory, it does not open the index.cfm files automatically as it would with index.html or index.php. I looked in the apache2.conf file for DirectoryIndex so that I could set index.cfm as a default, but I can't find it. I use to be able to set that in Apache 1.3 and I thought in 2.0. How can I add this now? Mike |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
mtuller wrote:
> I have ColdFusion running on Linux with Apache 2.2. When I go to a > directory, it does not open the index.cfm files automatically as it > would with index.html or index.php. I looked in the apache2.conf file > for DirectoryIndex so that I could set index.cfm as a default, but I > can't find it. I use to be able to set that in Apache 1.3 and I > thought in 2.0. > > How can I add this now? > > > Mike > I found it in my httpd.conf file # DirectoryIndex: sets the file that Apache will serve if a directory # is requested. # # The index.html.var file (a type-map) is used to deliver content- # negotiated documents. The MultiViews Option can be used for the # same purpose, but it is much slower. # <IfModule mod_include.c> <IfModule mod_dir.c> DirectoryIndex index.shtml </IfModule> </IfModule> <IfModule mod_dir.c> DirectoryIndex index.html index.html.var index.cgi index.pl index.htm Default.htm default.htm index.xml </IfModule> |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Maybe it's just the way Ubuntu implements it. They use different files
for modules that is a little confusing. I added what you had to my apache2.conf and all seems to work well. Thanks. On Jun 1, 4:21 pm, David <youcan...@findmoore.net> wrote: > mtuller wrote: > > I have ColdFusion running on Linux with Apache 2.2. When I go to a > > directory, it does not open the index.cfm files automatically as it > > would with index.html or index.php. I looked in the apache2.conf file > > for DirectoryIndex so that I could set index.cfm as a default, but I > > can't find it. I use to be able to set that in Apache 1.3 and I > > thought in 2.0. > > > How can I add this now? > > > Mike > > I found it in my httpd.conf file > > # DirectoryIndex: sets the file that Apache will serve if a directory > # is requested. > # > # The index.html.var file (a type-map) is used to deliver content- > # negotiated documents. The MultiViews Option can be used for the > # same purpose, but it is much slower. > # > > <IfModule mod_include.c> > <IfModule mod_dir.c> > DirectoryIndex index.shtml > </IfModule> > </IfModule> > > <IfModule mod_dir.c> > DirectoryIndex index.html index.html.var index.cgi index.pl > index.htm Default.htm default.htm index.xml > </IfModule> |
|
![]() |
| Outils de la discussion | |
|
|