Apache 2.2 and DirectoryIndex
am 01.06.2007 22:51:25 von mtuller
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
Re: Apache 2.2 and DirectoryIndex
am 01.06.2007 23:21:26 von david
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.
#
DirectoryIndex index.shtml
DirectoryIndex index.html index.html.var index.cgi index.pl
index.htm Default.htm default.htm index.xml
Re: Apache 2.2 and DirectoryIndex
am 02.06.2007 01:25:20 von mtuller
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 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.
> #
>
>
>
> DirectoryIndex index.shtml
>
>
>
>
> DirectoryIndex index.html index.html.var index.cgi index.pl
> index.htm Default.htm default.htm index.xml
>