Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1487 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  Apache et répertoire [Résolu]

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

Apache et répertoire [Résolu]

n°331998
glacote
Posté le 29-09-2003 à 11:57:41  profilanswer
 

J'ai le problème suivant:
quand un utilisateur tape http://domain.com/dossier
son navigateur se met à rechercher indéfiniment puis échoue (page introuvable).
quand il met  http://domain.com/dossier/
ça marche impeccable.
Commet configurer mon serveur web ?
 
Détails:
client = MS IE 5.5 (évidemment !)
serveur = apache/Linux
 
D'avance merci, ça m'aidera à crédibiliser Apache dans un réseau
100% Windows par ailleurs ....


Message édité par glacote le 29-09-2003 à 14:46:24
mood
Publicité
Posté le 29-09-2003 à 11:57:41  profilanswer
 

n°332008
blueteen
Posté le 29-09-2003 à 12:28:14  profilanswer
 

doc apache, à tester
 

Citation :

Why does accessing directories only work when I include the trailing "/" (e.g., http://foo.domain.com/~user/) but not when I omit it (e.g., http://foo.domain.com/~user)?  
When you access a directory without a trailing "/", Apache needs to send what is called a redirect to the client to tell it to add the trailing slash. If it did not do so, relative URLs would not work properly. When it sends the redirect, it needs to know the name of the server so that it can include it in the redirect. There are two ways for Apache to find this out; either it can guess, or you can tell it. If your DNS is configured correctly, it can normally guess without any problems. If it is not, however, then you need to tell it.
 
Add a ServerName directive to the config file to tell it what the domain name of the server is.
 
The other thing that can occasionally cause this symptom is a misunderstanding of the Alias directive, resulting in an alias working with a trailing slash, and not without one. The Alias directive is very literal, and aliases what you tell it to. Consider the following example:
 
        Alias /example/ /home/www/example/
        The above directive creates an alias for URLs starting with /example/, but does not alias URLs starting with /example. That is to say, a URL such as http://servername.com/example/ will get the desired content, but a URL such as http://servername.com/example will result in a "file not found" error.
 
The following Alias, on the other hand, will work for both cases:
 
        Alias /example /home/www/example

n°332041
glacote
Posté le 29-09-2003 à 14:47:44  profilanswer
 

OK, merci (et oui j'ai oublié la règle numéro 1: RTFM)


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  Logiciels

  Apache et répertoire [Résolu]

 

Sujets relatifs
[RESOLU] alsamixer en mute au demarage.... [résolu] Comment lancer 2 sessions de Xfree
[Résolu] Mais où est KDE ?Eteindre/rebooter le pc correctement sans être "logué" ? [resolu]
[URPMI] Paye ton incomprehension !! [Resolu]Ooo - nombre aléatoire [Résolu]
[PB] dri et radeon 7500 [resolu][Eterm] Question à deux euros. (Résolu)
[LaTeX] Pb avec un flottant chevauchant du texte (RESOLU)[Wine] Probleme ... incomprehensible [RESOLU]
Plus de sujets relatifs à : Apache et répertoire [Résolu]


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR