salut,
j'ai installé apache2 sous ubuntu 9.04.
je voulais héberger un site localement pour que je puisse y accéder à travers l'url:
donc j'ai créé un virtual host comme suit:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
| <VirtualHost 192.168.137.1:80>
ServerAdmin postmaster@test2.dz
DocumentRoot /var/www/test2
ServerName www.test2.dz
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/test2>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost> |
192.168.137.1 est l'adresse ip de ma machine ubuntu.
j'ai rajouté la ligne suivante à /etc/apache2/httpd.conf:
DirectoryIndex index.html index.htm index.xhtml index.php
puis j'ai activé le site avec:
et j'ai redémarré le service apache2:
sudo /etc/init.d/apache2 restart
après j'ai créé le dossier /var/www/test2 , et j'ai créé dedans un fichier "index.php" contenant:
quand je tape dans l'url "www.test2.dz", il m'affiche:
et quand je tape il m'affiche pas le contenu du fichier index.php.
pourriez vous m'aider à afficher le contenu du répertoire du site créé à partir de l'url?
merci d'avance
Partager