Configuration Vhosts avec Apache
Bonjour la communauté,
Je développe actuellement deux projets web et j'ai essayé de configurer les Vhosts pour pouvoir basculer d'un projet à un autre sans taper des adresses à rallonge.
J'ai trouvé un tuto sur internet pour pouvoir configurer mes Vhosts, mais celui-ci de fonctionne pas, Chrome m'affiche un message comme quoi l'adresse n'existe pas. VOici les étapes de config:
- Modification du fichier host dans C:\WINDOWS\system32\drivers\etc\ en ajoutant ces lignes:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 www.monsite.fr |
-Ensuite dans le fichier httpd-vhosts.conf, j'ai ajouté ces lignes:
Citation:
<VirtualHost *:80>
ServerAdmin
webmaster@dummy-host.example.com
DocumentRoot "C:/wamp/www/monsite/"
ServerName monsite.fr
ServerAlias
www.monsite.fr
ErrorLog "logs/dummy-host.example.com-error.log"
CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>
-Et j'ai décoché ces lignes dans httpd.conf :
Citation:
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
Et rien ne fonctionne! Ai-je oublié une étape?
Merci d'avance.