Apache2.2 create a VM. Apache2.2 create virtual host modify C: WINDOWSsystem32driversetchosts add a 192.168.0.80phpweb20 and then modify the ServerNamephpweb20DocumentRootC: WAMPApac apache2.2 file to create a virtual host
Modify C: WINDOWSsystem32driversetchosts
Added a 192.168.0.80 phpweb20
Then modify the httpd. conf file.
ServerName phpweb20
DocumentRoot "C:/WAMP/Apache/htdocs/workspace/flex/phpweb20/htdocs"
AllowOverride All
Options All
Php_value include_path ".; C:/WAMP/Apache/htdocs/workspace/flex/phpweb20/include; C:/WAMP/php/PEAR"
Php_value magic_quotes_gpc off
Php_value register_globals off
Enter http: // phpweb20/in the browser to open the directory. the connection fails.
Only 127.0.0.1 phpweb20 can be used. do you know why?
Let me answer
Modify C: WINDOWSsystem32driversetchosts to add a 192.168.0.80 phpweb20 and then modify the ServerName phpweb20 DocumentRoot "C:/WAMP/Apac...