J'ai le problème suivant
Mon fichier hosts est le suivant :
127.0.0.1 localhost
127.0.1.1 barbala4o-HP-ProBook-4530s
127.0.1.1 mysite.localhost
Mon dossier dans le /etc/apache2/sites-available/mysite.localhost.conf
est le suivant :
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName mysite.localhost
DocumentRoot /var/www/mysite
<Directory /var/www/mysite/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/mysite-error.log
CustomLog /var/log/apache2/mysite-access.log common
</VirtualHost>
Après avoir fait sudo a2ensite mysite.localhost.conf
et redémarrer apache sur mysite.localhost/ et seulement sur localhost j'obtiens ce qui suit (comme lister un répertoire sans fichier index dedans) :
Index of /
[ICO] Name Last modified Size Description
[DIR] apache_logs/ 2013-09-24 10:15 -
[DIR] mysql/ 2013-10-22 10:05 -
[DIR] tools/ 2013-10-22 10:05
Et sur tout autre dossier dans le /var/www/
répertoire comme le test quand j'entre localhost/test
au lieu de charger le index.php
il montre :
Not Found
The requested URL /adlantic was not found on this server.
Apache/2.4.6 (Ubuntu) Server at localhost Port 80
Si je le fais sudo a2dissite mysite.conf
et redémarrer apache tout est chargé ok. Je suppose que le problème se situe quelque part dans le mysite.localhost.conf
mais je n'arrive pas à trouver où. Une idée ? 10x