Impossible de configurer un virtualhost sous windows 7 et easyphp 5.3.3.1
Bonjour,
Ca fait maintenant plus de deux heures que je lis des tutos sur le sujet sans résultat.
Le fichier hosts :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| # 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 localhost
192.168.1.2 www.domaine.com |
le httpd.conf :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
| <Directory "D:\EasyPHP-5.3.3.1\www">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Directory>
NameVirtualHost *:8888
<VirtualHost *:8888>
# This will become the DocumentRoot path of your website
DocumentRoot "D:\EasyPHP-5.3.3.1\www"
# The name of your website
ServerName 127.0.0.1
<Directory "D:\EasyPHP-5.3.3.1\www">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride Options FileInfo Limit
</Directory>
</VirtualHost>
<VirtualHost *:8888>
# This will become the DocumentRoot path of your website
DocumentRoot "D:\EasyPHP-5.3.3.1\www\rdo"
# The name of your website
ServerName <a href="http://www.domaine.com" target="_blank">www.domaine.com</a>
<Directory "D:\EasyPHP-5.3.3.1\www\rdo">
Order Deny,Allow
Deny from all
Allow from 192.168.1.2
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride Options FileInfo Limit
</Directory>
</VirtualHost>
<VirtualHost *:8888>
# This will become the DocumentRoot path of your website
DocumentRoot "D:\EasyPHP-5.3.3.1\www\rdo"
# The name of your website
ServerName domaine2.fr
<Directory "D:\EasyPHP-5.3.3.1\www\rdo">
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Options Indexes FollowSymLinks
DirectoryIndex index.php
AllowOverride Options FileInfo Limit
</Directory>
</VirtualHost> |