Apache 2.4.7 virtual host adresse introuvable
Bonjour,
J'ai commencer la création d'un site hébergé sur mon serveur locale et je bloque à l'étape de la création d'un virtual host. En effet je débute dans ce domaine et ma configuration doit comporter des erreurs car mon virtual host me redirige vers "une adresse introuvable". Voici ma configuation:
Code:
1 2 3
| IP du serveur: 192.168.10.8
projet web: jacaladev.com
OS: Ubuntu 14.04 |
fichier /etc/hosts
Code:
1 2 3 4 5 6 7 8
| 127.0.0.1 localhost
127.0.1.1 devserver
192.168.10.8 jacaladev.com
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters |
fichier /etc/apache2/sites-available/jacala.com.conf
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13
| <VirtualHost *:80>
ServerAdmin <a href="mailto:moi@gmail.com">moi@gmail.com</a>
ServerName jacaladev.com
ServerAlias <a href="http://www.jacaladev.com" target="_blank">www.jacaladev.com</a>
DocumentRoot /var/www/html/jacaladev.com
<Directory /var/www/html/jacaladev.com>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost> |
Commande effectuée dans le terminal:
Code:
1 2 3
| a2ensite jacaladev.com.conf
service apache2 reload
service apache2 restart |
Voilà, malgrès les tutoriels et discussions sur des forum des problèmes similaires je n'arrive à trouver mon erreur.
Merci d'avance pour votre aide
Infos supplémentaire
Les règles suivantes du fichier jacaladev.com.conf ne s'applique pas alors qu'elles s'appliquent si je les met dans le fichier apache2.conf:
Code:
1 2 3 4 5
| <Directory /var/www/html/jacaladev.com>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory> |