Erreur 403 httpd.conf

stena83 -  
 Utilisateur anonyme -
Bonjour,

j'ai un site avec des pages web (normal) et un dossier images.

J'aimerais que lorsque que l'on tape http://url/images il n'affiche pas le contenu du dossiers mais une page d'erreur, je sais que cela s'effectue sur le fichier httpd.conf mais je ne sais pas comment

En fait il doit avoir moyen de dire s'il ne trouve pa une page index alors il renvoi une page 403

merci

1 réponse

Utilisateur anonyme
 
page d'accueil du serveur -> documentation d'apache -> Frequently Asked Questions:


19. How do I turn automatic directory listings on or off?

If a client requests a URL that designates a directory and the directory does
not contain a filename that matches the DirectoryIndex directive, then
mod_autoindex can be configured to present a listing of the directory contents.

To turn on automatic directory indexing, find the Options directive that
applies to the directory and add the Indexes keyword. For example:

  <Directory /path/to/directory>
     Options +Indexes
  </Directory>

To turn off automatic directory indexing, remove the Indexes keyword from the
appropriate Options line. To turn off directory listing for a particular
subdirectory, you can use Options -Indexes. For example:

  <Directory /path/to/directory>
     Options -Indexes
  </Directory>


0