, .
hosts, Windows, , Runs as Administrator : -
net stop "DNS Client"
, do
net start "DNS Client"
, !
DNS- , hosts , , .
vhost , - , , Apache vhost, vhost. , WAMP, , , vhost.
, , vhost - Require local, , , Require local, 404, .
// My virtual hosts file
<VirtualHost *:80>
ServerName localhost
DocumentRoot "C:\wamp\www"
<Directory "C:\wamp\www">
AllowOverride All
Require local
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName client1.localhost
DocumentRoot "C:\wamp\www\client1"
<Directory "C:\wamp\www\client1">
AllowOverride all
Require ip 192.168.0
</Directory>
DirectoryIndex index.html index.php
</VirtualHost>
<VirtualHost *:80>
ServerName client2.localhost
DocumentRoot "C:\wamp\www\client2"
<Directory "C:\wamp\www\client2">
AllowOverride all
Require ip 192.168.0
</Directory>
DirectoryIndex index.html index.php
</VirtualHost>
, , , Require ip 192.168.0. ( 192.168.0, . )
, , , Port Forward .
, , , Require local, WAMP.
WAMPServer 2.4, , , , , WAMPServer, , vhost. , .
, vhost, : -
1.
vhost \wamp\bin\apache\apache2.4.4\conf\extra\httpd-vhosts.conf and then in the httpd.conf, ( conf.
# infront Include
Include conf/extra/httpd-vhosts.conf
2.
vhost , , , \wamp\vhost.
httpd.conf , IncludeOptional "d:/wamp/vhosts/*"
, vhost, . Apache 2.4. , Apache 2.4.x.