commit 5b82f62516ed9a41d806fc442a49022e70b37328 Author: Thomas Constans Date: Tue Jul 5 09:09:52 2022 +0200 instructions diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..5044a2f --- /dev/null +++ b/Readme.md @@ -0,0 +1,24 @@ +# Directives + +Remettre documentroot à /var/www/html + +créer 2 répertoires foo et bar dans /var/www/html + +dans bar -> créer le fichier bar.html + +dans foo -> créer le fichier foo.html + +dans /etc/httpd/conf.d/my.conf: +```apache + + DirectoryIndex foo.html + +``` + +Question 1: Qu'est ce qui s'affiche quand on va accéder à chaque contenu ? +```bash + curl lia.fr/bar + curl lia.fr/foo +``` + +Question 2: Faire en sorte que le DirectoryIndex de foo soit le fichier foo/foo.html et celui de bar soit bar/bar.html \ No newline at end of file