PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Apache 2.2 and DirectoryIndex
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Apache 2.2 and DirectoryIndex

Réponse
 
LinkBack Outils de la discussion
Vieux 01/06/2007, 21h51   #1
mtuller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Apache 2.2 and DirectoryIndex

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

  Réponse avec citation
Vieux 01/06/2007, 22h21   #2
David
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache 2.2 and DirectoryIndex

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>
  Réponse avec citation
Vieux 02/06/2007, 00h25   #3
mtuller
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Apache 2.2 and DirectoryIndex

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>



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 09h50.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,10751 seconds with 11 queries