Otomatic a écrit: ------------------------------------------------------- > Bonjour, > > Pour vos site locaux, vous devez utiliser les > VirtualHost : > [url=http://forum.wampserver.com/read.php?1,124502 > ]Le BESOIN DE VIRTUALHOST[/url]
Merci pour la réponse
je viens de créer un virtualhost , dans mon dossier wamp qui va vers mon site , mais quand j'ai installé le site ,
je ne sais pas comment lancer ce site j'ai beau essayer avec [url]http://test1/index.php[/url] il me répond
No Sponsors Test1.com currently does not have any sponsors for you.
Merci de me conseiller pour arriver à démarrer mon site , j'ai chercher sur le forum (peut-être mal ) , pour essayer de trouver un petit tuto qui explique la procédure
- Contenu du fichier C:\Windows\System32\drivers\etc\hosts - Contenu du fichier J:\wamp\bin\apache\apache2.4.xy\conf\extra\httpd-vhosts.conf (xy = version apache utilisée)
- Quel est le résultat de : - Clic-Droit icône Wampmanager -> Outils -> Afficher les VirtualHost examinés par Apache
Il se peut que le fichier de configuration de votre site doive être modifié pour refléter l'url locale et non celle d'origine du site réel.
voici le résultat du Contenu du fichier C:\Windows\System32\drivers\etc\hosts
# 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 test1 ::1 test1
Contenu du fichier J:\wamp\bin\apache\apache2.4.xy\conf\extra\httpd-vhosts.conf
# # Virtual Hosts #
<VirtualHost *:80> ServerName localhost DocumentRoot c:/wamp/www ServerAlias localhost <Directory "c:/wamp/www/"> Options +Indexes +FollowSymLinks +MultiViews AllowOverride All Require local </Directory> </VirtualHost>
<VirtualHost *:80> ServerName test1 DocumentRoot c:/wamp/www/test1 ServerAlias www.test1 <Directory "c:/wamp/www/test1/"> Options Indexes FollowSymLinks MultiViews AllowOverride All Require local </Directory> </VirtualHost>