Changes

Jump to navigation Jump to search
Line 157: Line 157:  
====httpd.conf====
 
====httpd.conf====
   −
This example comes from a forum post at http://forums.contribs.org/index.php/topic,40336.0.html where a user asks how to redirect the "404 page not found rule" to a php file.
+
Cet exemple provient d'un message du forum, que vous pouvez trouver ici http://forums.contribs.org/index.php/topic,40336.0.html, où un utilisateur demande comment rediriger les erreurs 404 vers un fichier php.
   −
Make a custom template folder
+
Faites un dossier pour votre fragment de gabarit personnalisé
 
  mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 
  mkdir -p /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
   −
Edit the template fragment with vi or pico
+
Créez le fragment de gabarit avec vi ou pico  
 
  cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 
  cd /etc/e-smith/templates-custom/etc/httpd/conf/httpd.conf
 
  pico S85ErrorPages
 
  pico S85ErrorPages
and add the following text
+
ajoutez le texte suivant :
 
  # Add custom error pages here
 
  # Add custom error pages here
  ErrorDocument 404 /notfound.html
+
  ErrorDocument 404 /introuvable.html
   −
Save & exit from vi or pico
+
Sauvegardez et quittez
 
  Ctrl c
 
  Ctrl c
 
  Ctrl x
 
  Ctrl x
   −
Expand template & restart service
+
Appliquez le gabarit et redémarrez le service& restart service
 
  expand-template /etc/httpd/conf/httpd.conf
 
  expand-template /etc/httpd/conf/httpd.conf
 
  sv t /service/httpd-e-smith
 
  sv t /service/httpd-e-smith
   −
Using your favourite html editor, create a suitable web page & save it in the Primary/html ibay (or otherwise applicable ibay) with the filename of notfound.html  
+
À l'Aide de votre éditeur web préféré, créez la page web souhaitée et sauvegardez la dans le dossier html de l'ibay Primary. (ou de l'ibay de votre choix) avec un nom de fichier comme introuvable.html  
   −
Then open your browser and type in an incorrect URL (making sure the domain is valid) eg
+
Ouvrez ensuite votre navigateur internet et tapez une URL incorrecte (en étant sur que le domaine est valide et pointe vers l'ibay) comme http://www.mondomaine.com/jesaispas
  http://www.mydomain.com/dunno
+
et votre nouvelle page d'erreur devrais s'afficher.
and your new error page should be displayed.
     −
If custom error pages are required for virtual domains, create a new html error page for each domain and save it in the html folder of the appropriate ibay.
+
Si une page d'erreur est requise pour différent domaines virtuels, créez une nouveau fichier html pour chaque domaine et sauvegardez le dans le dossier html de l'ibay appropriée.
   −
This concept can also apply to other common error document pages such as
+
Ce concept s'applique aussi aux autres erreurs communes comme :
   −
  400 Bad Request
+
  400 Mauvaise requête
  401 Unauthorized
+
  401 Non autorisé
  403 Forbidden
+
  403 Interdit
   −
These errors can be catered for by appropriate lines in the template fragment to point to the particular pages.  
+
Ces erreurs peuvent être pris en charge par les lignes appropriées dans le du fragment de gabarit pour pointer vers des pages adaptées.
   −
A full list of error codes can be found at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
+
Une liste complète des codes d'erreur peut être trouvé ici http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
      −
More examples to be added to this section
+
Vous pouvez ajouter d'Autres exemples à cette section.
    
===Quick steps & tips===
 
===Quick steps & tips===
Super Admin, Wiki & Docs Team, Bureaucrats, Interface administrators, Administrators
3,250

edits

Navigation menu